GNOME Bugzilla – Bug 346541
create index to speed up searching
Last modified: 2018-05-22 13:09:16 UTC
searching for text in a large pdf document is quite slow. proposed solution: create an index of the searchable text, possibly when loading the document, or when the search dialog is first opened. Maybe make indexing optional, but then the default should be 'enabled'. Another option: somehow use beagle's infrastructure, if present.
Nice idea, probably just rework of text communication will make things faster.
*** Bug 352342 has been marked as a duplicate of this bug. ***
Maybe it could build the index the first time a search through the document is made.
*** Bug 468584 has been marked as a duplicate of this bug. ***
Created attachment 204845 [details] [review] increase search performance this patch greatly reduces text search duration by emitting less signals during search. in my testcase search duration has been reduced from 12.5 seconds to 5.5 seconds.
(In reply to comment #6) > Created an attachment (id=204845) [details] [review] > increase search performance > > this patch greatly reduces text search duration by emitting less signals during > search. in my testcase search duration has been reduced from 12.5 seconds to > 5.5 seconds. Thanks for the patch! This bug is about creating an index, and this patch doesn't speed up searching by creating an index, but emitting fewer signals, so please file a different bug report this and explain the patch there.
Review of attachment 204845 [details] [review]: I tested this patch and it is notorious the search performance in a big document. I filed a new bug in https://bugzilla.gnome.org/show_bug.cgi?id=694836, attached the patch keeping the credits. Thanks!
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/26.