Discussion:
[zathura] [PATCH] Optimize initial loading time
akbjker
2013-05-27 01:25:59 UTC
Permalink
This patch moves the page initialization code to read_archive(), so that
the program can retrive the dimensions of all pages in one read loop
instead of reopening the archive and searching through it over and over
again.

Also, instead of decoding the entire image just to get its dimensions, the
initialization code now decodes only the header.

The new code significantly speeds up the initial loading time, especially
for larger archives (>200 pages).


By the way, the coding style fix for my previous patch accidentally added
an extra semicolon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pwmt.org/archive/zathura/attachments/20130526/3bf2bf93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cb.patch
Type: application/octet-stream
Size: 5311 bytes
Desc: not available
URL: <http://lists.pwmt.org/archive/zathura/attachments/20130526/3bf2bf93/attachment.obj>
Loading...