[squid-dev] Do not load icons one character at a time

Alex Rousskov rousskov at measurement-factory.com
Fri May 20 18:25:39 UTC 2016


Hello,

> revno: 14682
> committer: Alex Rousskov <rousskov at measurement-factory.com>
> branch nick: trunk
> timestamp: Fri 2016-05-20 12:16:19 -0600
> message:
>   Fixed icons loading speed.
>   
>   Since trunk r14100 (Bug 3875: bad mimeLoadIconFile error handling), each
>   icon was read from disk and written to Store one character at a time. I
>   did not measure startup delays in production, but in debugging runs,
>   fixing this bug sped up icons loading from 1 minute to 4 seconds.


FYI: Squid v3.5 suffers from the same bug but will need a different fix
because trunk uses C++11 std::array.


HTH,

Alex.



More information about the squid-dev mailing list