Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Status of optimiza tions - can have n ative buffers
On Mar 5, 1:32am, Sebastian Gniazdowski wrote:
}
} result from with-patch current-head run:
}
} 29,965,124,064 arrlen_le [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]
} 29,965,124,049 arrlen_gt [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]
} 6,668,004,434 arrlen [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]
Well now THAT is interesting. Same total number of calls but now
they're split exactly half _le and half _gt.
This in turn strongly suggests that the calls are the one my patch
changed in params.c, and the one currently at line 2567 in subst.c.
If we could figure out whether these two are actually examining the
length of the same array each time, there might be a way (cache in
the struct value, as with the "arr" field?) to cut this in half.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author