This new function is much faster than ensureRange(pos, pos+1), which is a very common case. This speeds up the rendering of some test cases (including the Tracemonkey paper) by 4--5%.
This new function is much faster than ensureRange(pos, pos+1), which is a very common case. This speeds up the rendering of some test cases (including the Tracemonkey paper) by 4--5%.