Compress the generated Visio files. #1806
Unanswered
vidhanbagdai
asked this question in
Q&A
Replies: 1 comment
-
The compression of the Using the generateInternalStream might help. archive.zip.generateInternalStream(/* ... */); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As from the below document, the toVSDX function takes compression parameter to reduce the size of the file and as mentioned with more compression level the time is expected to increase, but there were no benchmarks mentioned
src: https://resources.jointjs.com/docs/rappid/v3.5/format.Visio.html#VisioArchive.prototype.toVSDX
We performed some simple runs across a JointJS graph with 100 nodes
Observations:
min time: ~19s
max time: ~32s
Memory spike: 480MB
As expected, higher compression levels result in better file sizes. But the time taken for compression is not consistent.
Also the time varies each time the server is used, sometimes it takes less than 10s and sometimes more than 30s.
Queries:
Beta Was this translation helpful? Give feedback.
All reactions