You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5762 Reporter:@chambart Assigned to:@lefessan Status: closed (set by @xavierleroy on 2015-12-11T18:08:20Z) Resolution: fixed Priority: normal Severity: feature Version: 4.00.0 Fixed in version: 4.01.0+dev Category: back end (clambda to assembly) Monitored by:@chambart@hcarty
Bug description
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.
Original bug ID: 5762
Reporter: @chambart
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:08:20Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 4.00.0
Fixed in version: 4.01.0+dev
Category: back end (clambda to assembly)
Monitored by: @chambart @hcarty
Bug description
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.
The loop:
for i = 0 to n do
ignore (Array1.dim a);
done
is close to 10 times faster with the patch.
File attachments
The text was updated successfully, but these errors were encountered: