[Freewx-maint] Bug#643287: wx2.8-doc: wx.hhp gzipped

Olly Betts olly at survex.com
Thu Oct 13 00:05:43 UTC 2011

On Thu, Oct 13, 2011 at 10:50:18AM +1100, Kevin Ryde wrote:
> Could the wxhelp be taught to read a wx.htx.gz?  I see wxZlibInputStream
> says it can read gzip, then I suppose depending whether the help wants
> to seek around or read it all in.  I can't see much order in the .htx
> entries.

I don't know how the file is used at all, but the wx code handles this
file being in a .zip, which is essentially the same situation in terms
of seekability (.zip uses the same compression by default as .gz).

This is probably something to do upstream, as being able to have the
same HTML files available for browsing normally seems generally useful.

> (It looks like sorting might knock an extra 1/3 off the compressed size
> of that .htx.  Better gzip dictionary locality or something presumably.)

Well spotted.  Yes, the gzip compressor only has a certain window size
in which it can "reuse" text, so sorting will tend to give it more scope
for finding matches.


More information about the Freewx-maint mailing list