On 11 October 2015 at 23:22, Bart Schaefer wrote: > On Oct 11, 8:05pm, Sebastian Gniazdowski wrote: > } I didn't combine the patches > > It may be interesting to do so, they shouldn't conflict. From what you > said before -- > > } > } It's now much faster, zprof time 11851 vs 3433. > > -- each of them cut the time by about 2/3, so together they may get it > below 3000. With both patches zprof running time is around 1806. RES is 152M and goes down nicely to 37564 when I quit the script. Didn't observe after-while slow down. The tool is almost fully usable for 89k elements (there's still a bit lag), however searching is slow, I attached zprof results for searching. It is done via two following invocations: list=( "${(@M)list:#(#i)*$~search_pattern*}" ) col_list=( "${(@)list//(#mi)($~colsearch_pattern)/$red${MATCH}$reset}" ) Maybe they trigger some specific behavior on heap? > -- > Barton E. Schaefer