Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: argv subscript range uses too many memory



On Sun, Nov 25, 2012 at 11:03:36AM -0800, Bart Schaefer wrote:
> 
> Has this really addressed the problem from 29175?  Larger blocks will
> mean it takes longer for the arena list to grow, but a loop that uses
> enough memory can still become pathologically slow.

It looks like this loop is really quick with the patch applied:

% time zsh -fc  'for i in {1..700000}; do true; done'
zsh -fc 'for i in {1..700000}; do true; done'  3.24s user 0.22s system 99% cpu 3.466 total

But this 10 times larger loop is still really slow:

% time zsh -fc  'for i in {1..7000000}; do true; done'
zsh -fc 'for i in {1..7000000}; do true; done'  1136.44s user 4.39s system 99% cpu 19:05.28 total




Messages sorted by: Reverse Date, Date, Thread, Author