Improve cf.Field.__getitem__
performance by not re-calculating axis cyclicity
#744
Labels
performance
Relating to speed and memory performance
Milestone
Currently (v3.16.1), the cyclicty of all axes with dimension coordinates is checked during a Field subspace. This likely entails getting the first and last values if the coordinates, which might be very slow if the values are on (a remote) disk, or need computing.
However, the cyclicity is already known on the subspaced field's
Data
object (cf.Data._getitem__
updates it), so we can just take it from there and disable the expensive automatic cyclicity check.The text was updated successfully, but these errors were encountered: