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

Re: Slowdown around 5.0.5-dev-0



On Oct 14,  9:25am, Bart Schaefer wrote:
}
} NEWHEAPS() is O(1) where pushheap() is O(N) where N is the number of
} arenas [...] the question is would it slow down in the more normal use
} case of a mostly-empty heap and a lot of function calls

Just as a data point, I tried swapping out the push/pop pair in the
source() function with NEWHEAPS/OLDHEAPS and "time"-ing a full run of
"make check" each way.  NEWHEAPS was slightly slower and had higher
CPU use -- but the test scripts aren't a typical shell use pattern.



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