Skip to content

FlatStruct is extremely inefficient #392

@Cybis320

Description

@Cybis320

I'm testing use_flat: true on a 1080p capture. Flux is unable to proceed because it runs out of memory (All 32 GB of RAM and 18 GB of swap!). Looking into it, the FlatStruct class is creating multiple Float64 copies of the image array from the flat.bmp. It takes a 2MB images and produces a 33MB object. This breaks the pickling pipeline.
How widely used is flat? Is Float64 necessary anywhere? Is it worth rewriting the FlatStruct class?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions