Subj : CVS commit web/html/membe To : Deuce From : Digital Man Date : Wed Apr 20 2005 02:30 pm Re: CVS commit web/html/membe By: Deuce to Digital Man on Wed Apr 20 2005 04:15 pm > > > (ToDo: Why is sort so damn slow? Can I blame the branch callback?) > > > > No, the branch callback will not be called during a single function call > > say... sort()). > > Ah, but sort() calls the specified function at least once for every pair of > array elements... Oh yeah, I forgot that you pass a function to sort(). In that case, the branch callback *could* have an effect (by releasing time-slices when you don't want it to). You can temporarily disabling the yeilding by setting js.yield_interval to 0 before calling sort() and restoring after. If this improves performance, please let me know. digital man Snapple "Real Fact" #125: Pigeons have been trained by the U.S. Coast Guard to spot people lost at sea. .