[squeak-dev] Re: quick handling of graphics files

Andreas Raab andreas.raab at gmx.de
Thu Apr 15 07:10:42 UTC 2010


On 4/14/2010 11:39 PM, Bert Freudenberg wrote:
> On 15.04.2010, at 06:47, Andreas Raab wrote:
>>
>> On 4/14/2010 8:38 PM, Yoshiki Ohshima wrote:
>>> At Wed, 14 Apr 2010 19:54:22 -0700,
>>> Andreas Raab wrote:
>>>>
>>>> I see your 30x improvement and raise you another ... 6x for a total of
>>>> 200x speedup (from 10secs to 50 msecs). There! Take that! :-)
>>>
>>>    Man!  Even the timestamps of these methods are the same.  How fast
>>> can you type?! ^^;
>>
>> Time is an illusion. Lunchtime doubly so. :-)
>
> 19:50 is lunchtime for you? That explains a lot ;)
>
> In any case, this is a nice example of how naive code works fine for years, but if you need speed, there are certainly ways to make it efficient (if less readable).

Indeed. I would vote for including Juan's version and the ZipPlugin 
primitive (which for some inexplicable reason wasn't there). This still 
gets you a great speedup which ought to be enough until someone else 
complains :-)

Cheers,
   - Andreas



More information about the Squeak-dev mailing list