[OT] RE: counter++ versus

Geoff Canyon gcanyon at inspiredlogic.com
Sun Mar 28 10:33:54 EST 2004


Can you post the actual code you were using?

regards,

Geoff Canyon
gcanyon at inspiredlogic.com

On Mar 28, 2004, at 12:08 AM, Frank Leahy wrote:

> Time to show 190 photos in a scrolling list -- under 3 seconds on my 
> iBook.
>
> Time to show 294 photos in a scrolling list -- about 8 seconds.
>
> Time to show 1124 photos in a scrolling list -- about 60 seconds.  But 
> only 728 fit in the scrolling list (32000 pixel limit).
>
> Degradation? Yes.  Graceful degradation?  Well...maybe not.
>
> I was sure that the bottleneck was reading the photos from disk, as I 
> could hear the disk being hit a lot, so I commented out the "set the 
> filename" line.  Result?  Essentially no speed difference.
>
> So then I commented out the code that sets *any* information in each 
> group (title, etc.), so all that's happening is the photo groups are 
> being created and positioned.  Result?  The 1124 photo version dropped 
> to 15 seconds.
>
> Hmmmm.  As Wouter said it looks like there's some room for improvement.
>
> 2) Getting file info on a single file is too slow.  You have to get 
> the detailed file info for the whole directory and then find the 
> particular file you want.



More information about the use-livecode mailing list