Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slowdown around 5.0.5-dev-0
On 11 October 2015 at 23:22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } Htop shows RES of 152 MB. For the first patch
> } RES is 166 MB. For the clean version it's 152 MB.
>
> OK, this makes sense because the patch from workers/36834 is leaving some
> heaps around longer whereas the patch from workers/36836 is just avoiding
> a re-scan of the list of heaps at allocation time.
Can something be done inside the script to make memory more prepared
for heavy computation? I tried putting:
# Allocate a large buffer just to free it
a=""
a="${(r:2000000:: :)a}"
a=""
before:
list=( "${(@M)list:#(#i)*$~search_pattern*}" )
But it doesn't make difference
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author