[fpc-pascal]Re: Profiling and classes

Jeff Pohlmeyer yetanothergeek at yahoo.com
Mon Mar 31 07:19:44 CEST 2003


> However I'm quite sure that it has to with the
> OO-methods for accessing array-elements

Having no idea what this object is doing, I might be 
way out of line here, but maybe it would speed things
up to implement some sort of a "ForEach" callback, 
rather than indexing the array on each call.


So instead of:
  for i:=0 to Obj.Count-1 do Proc(Obj.Prop[i]);

You might have something like this:
  Obj.ForEach(@Proc);


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



More information about the fpc-pascal mailing list