Blender3mfFormat icon indicating copy to clipboard operation
Blender3mfFormat copied to clipboard

Enormous memory usage

Open eSqadron opened this issue 1 year ago • 1 comments

Trying to open this model, blender got stuck in "not responding" and memory usage was between 10 and even 14GB. This lasted for around 15 minutes, and I decided to kill blender.

Windows 10 16GB RAM Intel Core 17-4790K Nvidia Geforce GTX970

3mf importer version: 1.0.2 Blender Version: 4.0.2

eSqadron avatar Feb 27 '24 16:02 eSqadron

This is somewhat logical, since the model file is 1.7GB when unzipped, and Python's ElementTree module has trouble loading anything greater than 600MB or so.

Usual solutions would be to use a performant C module like lxml. However that's not possible since lxml is not in the Python environment provided by Blender. However it could still be solved by using iterparse on the ElementTree. That'll be a bit of a rewrite though, but would be a lot better for memory usage.

Ghostkeeper avatar Feb 28 '24 10:02 Ghostkeeper