Memory leak, UI freeze and excessive CPU usage for the first-time-search inside a pdf
When searching for a string in a large pdf (200MiB, ~2000 pages), zathura hangs for ~50 seconds, and RAM usage climbs up to 2.8GiB. Subsequent searches are instant though. Here is a screen-cast of the situation (I've opened the pdf for some time, on 0:3 second mark (0:7 in htop), I search for a string):
output
Here is the output of version. I'm using .deb
releases from here: https://launchpad.net/~s-ramacher/+archive/ubuntu/ait
zathura 0.4.5
girara 0.3.3 (runtime: 0.3.4)
(plugin) djvu (0.2.9) (/usr/lib/x86_64-linux-gnu/zathura/libdjvu.so)
(plugin) ps (0.2.6) (/usr/lib/x86_64-linux-gnu/zathura/libps.so)
(plugin) pdf-poppler (0.3.0) (/usr/lib/x86_64-linux-gnu/zathura/libpdf-poppler.so)
(plugin) cb (0.1.8) (/usr/lib/x86_64-linux-gnu/zathura/libcb.so)
P.S. I've also experienced this on 0.3.8