For what it's worth, I wrote ptrmath primarily for C/C++ interop. Modern 
compilers are generally smart enough to generate identical code, and using 
pointer arithmetic can even inhibit optimizations in some cases. You'll see 
performance benefits only for certain edge cases and may lose performance in 
other edge cases. Obviously, it can also help with porting C/C++ code, but one 
shouldn't expect performance gains out of such a port.

Reply via email to