Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!uunet!nntp.cadence.com!news
From: Nancy Aten <nancya>
Subject: VW20 graphics display slower than OW41
Content-Type: text/plain; charset=us-ascii
Message-ID: <D8HvHu.MGt@Cadence.COM>
To: nancya@cadence.com
Sender: news@Cadence.COM
Content-Transfer-Encoding: 7bit
Organization: Cadence Design System, Inc.
Mime-Version: 1.0
Date: Sat, 13 May 1995 02:13:06 GMT
X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.2 sun4c)
X-Url: news:comp.lang.smalltalk
Lines: 27

VisualWorks2.0 GraphicsContext display primitives are slower than 
ObjectWorks4.1b. In sample workspace tests, on a sparc IPX:

#displayMask:at: is about 10 times! slower.
#displayPolyline:at: is about 50% slower.
#displayRectangularBorder:at: is about 100% slower.

Anyone have any insights/suggestions before I change careers? 

Here's the workspace code I used for one test. I copied the VW
Image_class>>parcPlaceLogo into OW so the image was identical, 
and also copied Image>>convertToCoverageWithOpaquePixel: to OW.

TempWindow := ScheduledWindow new.
TempWindow openWithExtent: 500@500.

| gc pt mask |
gc := TempWindow graphicsContext.
gc clear; paint: ColorValue red.
pt := 0@0.
mask := (Image parcPlaceLogo convertToCoverageWithOpaquePixel: 0)
 	  asRetainedMedium.
Time millisecondsToRun: [300 timesRepeat: 
        ["gc clear." "with or without clearing"
        mask displayOn: gc at: pt. 
        pt := pt + 1]].

