commit | bb417099e481bc947f19b1a7c2f4073ec64c8086 | [log] [tgz] |
---|---|---|
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | Sat Dec 24 00:09:31 2011 -0200 |
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Sat Dec 24 01:15:25 2011 -0200 |
tree | 9658021837d34f8bce6b2c1ac1c132899f6d5c88 | |
parent | cfb908bf660871f9475b485806e004ddcc5ced18 [diff] |
file: speed up loading non-gzipped modules when zlib is enabled. Just now realized that my distro (Gentoo) enables support for gzip but does not compress modules by default. In this case it's better to have a special case that uses mmap() instead of a loop of realloc() + gzread().