Skip to content

Uses unreasonable amounts of RAM when loading a folder with 600 images. #1

@mikerofone

Description

@mikerofone

Hi,

It seems that the tool makes very inefficient use of memory, preventing me from using it for my use case.

I've opened a folder containing 603 .JPG images of a total size of ~2.8GB. Opening the folder went fairly slowly, and when the progress bar showed about 30% done, the tool already consumed over 10GiB of RAM and still kept going. Eventually the system started swapping and hanging. I managed to kill the process before the system became unstable.

I assume https://github.com/Cornul11/ExifDateGeoBatch/blob/55abc4fb55359fa2f5a0045bd75be5eddeceb7ab/utils/image_loader_thread.py#L20 is to blame, since it loads the entire image to RAM for thumbnail generation, but never unloads the full-size pixmap.

I am testing a fix and will send a pull request. :)

Cheers
mikerofone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions