Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add primitives for fast access to bigarray dimensions #5762
Original bug ID: 5762
Bigarray.Array1.dim is a generic C function that may be called a lot when doing IO using bigarrays. It is a lot slower than what can be done directly in cmm.
I provide a patch to add the primitives for Array1,Array2 and Array3 modules.
for i = 0 to n do
is close to 10 times faster with the patch.