44 ms·
It would help to replace pointers by integer offsets, and keep the base in only one location. Using offsets is also useful if you move your code to GPU.
by erwincoumans 4y ago
It would help to replace pointers by integer offsets, and keep the base in only one location. Using offsets is also useful if you move your code to GPU.
- rurban 4y agoA pointer offset or pointer compression optimization would need a complete rewrite. Nobody does that. It would only work in a VM (bytecode or jit).