Feature request: multi-core use for search

Asked by Mo on 2017-01-10


first thank you for your great work, been using qpdf for years now.

What I'm missing is multi-core use for in-text search.
When scrolling all cores are used while but when using the search, only one core goes up to 100% and the others idle. Only pdf reader I found supporting multi-core for search has been foxitreader which I don't really like but gives me significantly faster search on big pdf.

Would it be possible to put this feature on the roadmap?


Question information

English Edit question
qpdfview Edit question
No assignee Edit question
Last query:
Last reply:
Adam Reichold (adamreichold) said : #1


implementing parallel search of pages of a single document within qpdfview is pretty straight forward if I am not mistaken, in any case I just pushed this into trunk but hidden behind a setting called "Parallel search execution" (on the "Behavior" tab in the settings dialog). But I am not sure this will improve performance that much since most of the libraries qpdfview calls into need external locking so that only one core will be busy at any point in time, but of course with a recent Poppler version things might look different. And when it does not help, it will only increase overhead and hence actually reduce performance, so it is currently disabled by default. But if you build from source or grab a daily build for Ubuntu, OpenSUSE or Arch you should be able to try this out and check if it helps your use case.

Best regards, Adam.

Can you help with this problem?

Provide an answer of your own, or ask Mo for more information if necessary.

To post a message you must log in.