Re: Reverse() was: Win32Lib Update
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Nov 28, 1998
- 429 views
>> As I recall, an append/prepend as only statement in a for-block will be >> optimized to one alloc, one pass proccesing. >errrrr.... i really don't think so.... >see irv's benchmarks... >ummmm.... the prepend came in last... :/ ;-( Robert, said append and prepend were like, really really optimized. And for-statements as well.. So, Robert (or Junko now it seems again, could there be some 'extra' optimization with statement blocks like for- and while- . Esspecially when they contain only one statement. (which should be fairly easy to optimize). But I was also thinking of multiple 'slices'/'indexes' to be looked up only once, within a statement block. And off couse the "for each item in my-sequence do" - syntax provides both optimization 'oppertunities' as well as increased error checking, and more readable code. Ralf