New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LZMA compression for downloading from FileSrv #53

Open
dpogue opened this Issue Jun 29, 2011 · 2 comments

Comments

Projects
None yet
3 participants
@dpogue
Member

dpogue commented Jun 29, 2011

I believe right now it uses .gz files with plZlibStream. 7zip offers better compression, especially if we can combine multiple files into a single archive.

Future ideas based on this support:

  • Compression of Python and SDL downloaded from server. Download a single archive that unpacks to the required multiple files.
  • Manifest-based archives. Rather than downloading each file, you could download all the files for an Age as a single archive.
@Deledrius

This comment has been minimized.

Member

Deledrius commented Jun 29, 2011

Would it be best to use LZMA SDK directly (http://www.7-zip.org/sdk.html) or something like libarchive (http://code.google.com/p/libarchive/) which looks like it has a better interface, as well as giving us a lot of extra formats for free? I'm thinking it might be nice to implement a plCompressedStream and let the lib handle formats entirely (as a bonus, it would allow us to fold plZlibStream into it as well, further cleaning up the glut of sub-projects).

@zrax

This comment has been minimized.

Member

zrax commented Jun 30, 2011

zlib != gzip, and LZMA != 7z... gzip and 7z are file formats, whereas zlib and LZMA are stream formats... Just picking the nits :P

Anyway, I believe we'll still want the latter here, since it means individual files can be downloaded when only one is out of date or corrupt, instead of having to download an entire archive. The exception is, of course, the Python/SDL, since the current engine design downloads those every time the game is launched...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment