5 ms·
The addition is much cheaper than the memory access. The register pressure is worse than the addition. The size reduction of the index (versus the pointer) and
by pocksuppet 6d ago
The addition is much cheaper than the memory access. The register pressure is worse than the addition. The size reduction of the index (versus the pointer) and resulting cache pressure reduction can outweigh the register pressure and the addition if you are storing many indices.