While doing a profiling session I've noticed this method popping up over and over. Noticed there were some simple and obvious optimizations, like not allocating an extra array, and avoiding repeated multiplications in index computation, and thought to share the results with the wider community.
Description of Changes
While doing a profiling session I've noticed this method popping up over and over. Noticed there were some simple and obvious optimizations, like not allocating an extra array, and avoiding repeated multiplications in index computation, and thought to share the results with the wider community.
PR Checklist