Closed Jafagervik closed 6 months ago
Add @inbounds macro to for loops to avoid boundary checks and speed up computations
That can be done. Would you mind doing some light benchmarking, post the results, and submit a PR? In some cases omitting inbounds speeds up the loop / bounds checks are automatically elided anyway.
Add @inbounds macro to for loops to avoid boundary checks and speed up computations