roxen.lists.pike.general
Subject | Author | Date |
---|---|---|
RE: Arrays: multi-pop? | Jonas Walldén @ Pike importmö <6341[at]lyskom[dot]lysator[dot]liu[dot]se> | 10-09-2009 |
> Well, I prefer my version because of memory usage (you only need to > keep a copy of 5000 elements instead of all the elements in groups > of 5000) Couldn't the foreach() iterator do the same internally? If the optimizer knows how to rewrite foreach(some_string / "\n", ...) into a line iterator it would be nice if foreach(some_array / 5000.0, ...) did something similar. Or maybe it does already? Of course, strings being immutable is a significant property that may account for the difference. |