[Xerte-dev] Re: example_zipper issue revisited

David Goodwin david at palepurple.co.uk
Thu May 1 10:23:56 BST 2014


Hi,

> The zipper creates a blank object (<0.1Mb memory used)
> The library loads all the other files individually and zips them into the object (0Mb -> compressed size of all js/html is perhaps around 1-2Mb or under)
> The library then loads the mp4 (now it has the object = 2Mb and the video = 62Mb in memory)

Except it's not in memory.

The zip_file class has an option set (inmemory = 0) which should make it 
write to a temporary file (and not store the zip itself in memory).


David.

-- 
Pale Purple Ltd

PHP Web application development and support

http://www.palepurple.co.uk
@PalePurpleLtd
07792 380669 / 0845 0046746



More information about the Xerte-dev mailing list