]> git.wincent.com - wikitext.git/commit
More array wrapper instrumentation: delete calls
authorWincent Colaiuta <win@wincent.com>
Mon, 4 Feb 2008 22:48:46 +0000 (23:48 +0100)
committerWincent Colaiuta <win@wincent.com>
Mon, 4 Feb 2008 22:48:46 +0000 (23:48 +0100)
commitea8fc88cf73a9f9e4196d587490d75abc1d4e8af
tree4c0c094998de5f6fb0a82723d605680e23ac46f3
parent2199333ad476f31a6a6ce0ec7f9332253b2af0d8
More array wrapper instrumentation: delete calls

This time we instrument delete calls. Turns out that almost all of them
(about 2,000) are popping off the end (with an index of -1); another 18
has an index parameter other than -1 but there were still popping items
of the end.

So we'll optimize for exactly that case: deleting from the end (most
likely by simply changing the count).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/ary.h