ecmwf / atlas

A library for numerical weather prediction and climate modelling
https://sites.ecmwf.int/docs/atlas
Apache License 2.0
115 stars 42 forks source link

ForEach method very slow on small arrays #134

Closed odlomax closed 1 year ago

odlomax commented 1 year ago

The current ForEach method is particularly slow when processing a large number number of small arrays. This is probably due to the overhead of using a config object to to set the execution policy.

Issue addressed by PR 113.

wdeconinck commented 1 year ago

Sounds like a strange thing to do, to have nested foreach, but welcome to improve it, to make that possible.