Skip to content

Improve memory usage when computing the true bounding box#25

Merged
lesserwhirls merged 1 commit into
Unidata:unidata_mainfrom
lesserwhirls:mem
Jul 8, 2026
Merged

Improve memory usage when computing the true bounding box#25
lesserwhirls merged 1 commit into
Unidata:unidata_mainfrom
lesserwhirls:mem

Conversation

@lesserwhirls

Copy link
Copy Markdown
Member

A potentially large amount of memory was being consumed by the list of HorizontalPosition objects in pursuit of computing the true grid bounding box. This change skips constructing the list saving memory. This change also caches the bounding box, as multiple grids may share the same set of horizontal axes, which can save quite a lot of time for high resolution datasets with a large number of grids.

A potentially large amount of memory was being consumed by the list
of HorizontalPosition objects in pursuit of computing the true grid
bounding box. This change skips constructing the list saving memory.
This change also caches the bounding box, as multiple grids may share
the same set of horizontal axes, which can save quite a lot of time for
high resolution datasets with a large number of grids.
@lesserwhirls lesserwhirls merged commit 5ad5c5e into Unidata:unidata_main Jul 8, 2026
2 checks passed
@lesserwhirls lesserwhirls deleted the mem branch July 8, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant