Refactoring of 3MF file export to use the new homebrewed miniz

streaming interface. This shall fix high memory consumption and
crashes when exporting extremely large 3MF files.
This commit is contained in:
Vojtech Bubnik 2021-01-26 14:55:58 +01:00
parent ef424ad101
commit 7a6c038480
2 changed files with 102 additions and 45 deletions

View file

@ -2,6 +2,8 @@ This library is based on miniz 2.1.0 - amalgamated version.
----------------------------------------------------------------
PrusaResearch (Vojtech) homebrewed the following:
mz_zip_writer_add_staged_open(), mz_zip_writer_add_staged_data() and mz_zip_writer_add_staged_finish()
were derived from mz_zip_writer_add_read_buf_callback() by splitting it and passing a new
mz_zip_writer_staged_context between them.