Skip to content

Memory Load Reduction Measures – Memory Usage Issues During Image Playback #839

@tsuchiyama-araya

Description

@tsuchiyama-araya

Feature Overview

Image playback causes significant memory load both on the backend and frontend.
In the backend, playing generated images results in high memory usage.
In the frontend, all images are loaded at once and stored in state, which can lead to unnecessary memory consumption.
Efficient memory management is needed across the system.

Action Item: Investigate memory usage during playback and improve both backend and frontend memory handling.


Libraries and Data Handling

  • Frontend: Uses Plotly for visualization.
  • Backend: Uses tifffile.imread for image loading, which loads entire images into memory.
  • Action Item: Evaluate lazy-loading and chunked data access libraries such as zarr, dask, or rasterio.
  • Frontend Action: Implement logic to fetch only necessary frames based on index.

Additional References

📄 Workflow Memory Optimization Doc


Goal

Compare memory usage between the current implementation and the previous optinist version.

  • If memory consumption is lower in the new implementation, it can be considered complete.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions