Summary: | Typing long text in PDF forms extremely slow | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Louis Moureaux <m_louis30> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | kde |
Priority: | NOR | ||
Version: | 23.04.3 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Profile |
Duh just checked 23.08 and it's fixed there. Thank you for this and sorry for the noise! Mostly for other people who finds this: This was iirc fixed in poppler 23.06. https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1384/diffs was a big part of it, but there was a few more fixes here and there. |
Created attachment 161510 [details] Profile SUMMARY When editing a (specific) PDF form with a "free text" field, typing is extremely slow with okular at 100% CPU usage (multiple seconds per character). A quick profile shows Poppler::FormFieldText::setText(QString) as the main culprit, apparently reloading fonts and querying FontConfig in the process. Okular shouldn't call this function on every edit (and I suspect even for every letter in the text, else it wouldn't be so slow). STEPS TO REPRODUCE 1. Open a PDF form with a multiline text field (I can test patches/share mine privately if needed) 2. Try to type some text OBSERVED RESULT Wait for 5 seconds per letter you type EXPECTED RESULT Editing test is instant SOFTWARE/OS VERSIONS Operating System: KDE neon 5.27 KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.2.0-31-generic (64-bit) Graphics Platform: Wayland