4 ms·
I have had to combine files into a zipped file on demand before. It is hard to avoid the inherent slowness of that.
by megaman821 2y ago
I have had to combine files into a zipped file on demand before. It is hard to avoid the inherent slowness of that.
- ch4s3 2y agoInteresting, was there a business reason to not do that in the background somewhere?
- megaman821 2y agoYeah, very non-technical users that won't check their email or click on a notification when the zip file is ready for them.
- ch4s3 2y agoI can feel that deep in my bones.
- vundercind 2y agoMmm. If you had the right library, might be able to stream it as it’s being created which might help at least with perceived performance, but yeah, that’s a fun one.
- jonatron 2y agoI had to create streaming zips of files from S3 on the fly about 10 years ago, https://github.com/jonatron/django-s3-stream https://github.com/jonatron/django-s3-stream . I didn't find it fun.
- xioxox 2y agoI have Django code which creates a tar file on the fly from a list of requested files and works well. It doesn't use intermediate storage. The tar format can be pretty simple. I got most of the way into implementing a uncompressed zip version, but then I realised that tar was good enough for my site.