Skip to content

Fixed allocating a large amount of memory with pixel coordinates#45

Merged
DirkEilander merged 2 commits intoDeltares:mainfrom
vzagorovskiy:fix_memory_allocation
Dec 19, 2024
Merged

Fixed allocating a large amount of memory with pixel coordinates#45
DirkEilander merged 2 commits intoDeltares:mainfrom
vzagorovskiy:fix_memory_allocation

Conversation

@vzagorovskiy
Copy link
Copy Markdown
Contributor

Fixed allocating a large amount of memory with pixel coordinates for the whole image at once.

Issue addressed

Fixes #44

Explanation

FlwdirRaster.stream crashed on a huge rasters on a machine with 16 GB or less

Checklist

  • [ x ] Updated tests or added new tests
  • [ x ] Branch is up to date with main
  • [ x ] Updated documentation if needed
  • [ x ] Updated CHANGELOG.rst if needed

Additional Notes (optional)

Tests showed successful work on large images, the speed of work on small images has not changed. The changes do not break the current program logic and do not require additional changes in the existing code.

image

image

Copy link
Copy Markdown
Contributor

@DirkEilander DirkEilander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this contribution @vzagorovskiy. I think it looks excellent and is ready to be merged.

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.

FlwdirRaster.stream crashed on a ~44000x20000 raster on a machine with 16 GB or less

2 participants