<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Wed, Nov 28, 2018, 12:08 Antoine Pitrou <<a href="mailto:solipsis@pitrou.net" target="_blank" rel="noreferrer">solipsis@pitrou.net</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 28 Nov 2018 19:35:31 +0000<br>
Jonathan Underwood <<a href="mailto:jonathan.underwood@gmail.com" rel="noreferrer noreferrer" target="_blank">jonathan.underwood@gmail.com</a>> wrote:<br>
> On Wed, 28 Nov 2018 at 18:57, Antoine Pitrou <<a href="mailto:solipsis@pitrou.net" rel="noreferrer noreferrer" target="_blank">solipsis@pitrou.net</a>> wrote:<br>
> ><br>
> > On Wed, 28 Nov 2018 10:43:04 -0800<br>
> > "Gregory P. Smith" <<a href="mailto:greg@krypto.org" rel="noreferrer noreferrer" target="_blank">greg@krypto.org</a>> wrote:  <br>
> [snip]<br>
> > > I don't think adding lz4 to the stdlib is worthwhile.  It isn't required<br>
> > > for core functionality as zlib is (lowest common denominator zip support).  <br>
> ><br>
> > Actually, if some people are interested in compressing .pyc files, lz4<br>
> > is probably the best candidate (will yield significant compression<br>
> > benefits with very little CPU overhead).<br>
> >  <br>
> <br>
> It's interesting to note that there's an outstanding feature request<br>
> to enable "import modules from a library.tar.lz4", justified on the<br>
> basis that it would be helpful to the python-for-android project:<br>
> <br>
> <a href="https://github.com/python-lz4/python-lz4/issues/45" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/python-lz4/python-lz4/issues/45</a><br>
<br>
Interesting.  The tar format isn't adequate for this: the whole tar<br>
file will be compressed at once, so you need to uncompress it all even<br>
to import a single module.  The zip format is more adapted, but it<br>
doesn't seem to have LZ4 in its registered codecs.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Zip can be used without compression as a simple container for files, though, and there's nothing that says those can't be .pyc.lz4 files.</div><div dir="auto"><br></div><div dir="auto">-n</div></div>