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.
- Re: Help me optimize this small Nim port to the speed of t... mratsim
- Re: Help me optimize this small Nim port to the speed... r3c
- Re: Help me optimize this small Nim port to the s... Stefan_Salewski
- Re: Help me optimize this small Nim port to t... mratsim
- Re: Help me optimize this small Nim port ... r3c
- Re: Help me optimize this small Nim ... Stefan_Salewski
- Re: Help me optimize this small Nim ... Stefan_Salewski
- Re: Help me optimize this small Nim ... r3c
- Re: Help me optimize this small Nim ... mratsim
- Re: Help me optimize this small Nim ... r3c
- Re: Help me optimize this small Nim ... Jehan
- Re: Help me optimize this small Nim ... mratsim
- Re: Help me optimize this small Nim ... r3c