<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 22 Dec 2023 at 01:21, Reinhard Kotucha via luatex <<a href="mailto:luatex@tug.org">luatex@tug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2023-12-21 at 10:27:48 +0100, Hans Hagen wrote:<br>
<br>
> I stop here as I've written plenty about performance the last<br>
> decades in various docs,<br>
<br>
Hi Hans,<br>
please let me mention this though:<br>
<br>
A few months ago I uncompressed the lualatex format file and<br>
compressed it with lz4. The lz4-compressed file was smaller than the<br>
original format file. Though I know that luatex doesn't use maximum<br>
gzip compression, I didn't really expect this.<br>
<br>
26702648 lualatex.fmt-uncompressed<br>
12201683 lualatex.fmt<br>
9926586 lualatex.fmt.lz4<br>
<br>
But what I absolutely didn't expect is that de-compression of lz4<br>
files is about 7.5 times as fast as de-compression of the gzip'ed<br>
format file.<br>
<br>
In order to determine speed I directed the de-compressed output to<br>
/dev/null because when writing to disk results differ much more<br>
between successive runs and a format file is extracted in memory and<br>
not written to disk.<br>
<br>
Maybe it's worthwhile to keep an eye on lz4.<br>
<br></blockquote><div><br></div><div>Good to know. A quick search, just for the record:</div><div><a href="https://manishrjain.com/compression-algo-moving-data">https://manishrjain.com/compression-algo-moving-data</a></div><div><br></div><div>But I think lz4 is better than zstd for a format.</div><div>--</div><div>luigi</div></div></div>