kaushalmodi / ptr_math

Pointer arithmetic in Nim
https://kaushalmodi.github.io/ptr_math/
MIT License
16 stars 3 forks source link

Switch the procs back to templates as templates are faster? #3

Open kaushalmodi opened 3 years ago

kaushalmodi commented 3 years ago

This would involve mostly reverting https://github.com/kaushalmodi/ptr_math/commit/22609c856db9311df64573ca30ca80cde58046a3 .

https://gitter.im/nim-lang/Nim?at=60c0e98f19b46c60b179ef72

/cc @treeform

treeform commented 3 years ago

I would add a benchmark that proves templates are faster then inline procs. That might change in the future as Nim improves?

kaushalmodi commented 3 years ago

I would add a benchmark

I haven't done a benchmark before.

Will you be willing to provide a PR to enable that in https://github.com/kaushalmodi/ptr_math/blob/main/.github/workflows/test.yml ?