Pdf XFA: Filling form is very sluggish |
||||||||
Issue descriptionVersion: 7c1c27414ff9e29a88fec8f717b4c157363bfae6 Trying to fill out the attached form from http://www.cic.gc.ca/english/pdf/kits/forms/IMM5257E.pdf The reaction time of this form is _very_ slow. I can type my whole name before it starts reacting. Clicking drop-down boxes also feels slow, on the order ~1 second between the click and the list appearing.
,
Mar 7 2016
,
Mar 31 2016
,
Apr 14 2016
,
Oct 2 2017
,
Oct 2 2017
,
Oct 2 2017
I have some findings written down in pdfium:869.
,
Feb 6 2018
Sending over since hnakashima is looking at performance issues.
,
Mar 5 2018
Focusing on imm5257e.pdf at first. The main source of performance issues, by far, is rendering the drop down arrow buttons. Specifically, the Axial shading is super slow and the buttons are redrawn very frequently (on hovering the mouse pointer over a widget, for example). Switching to a solid color reduces rendering time by like 90%. I'll try to optimize the shading code, but an easy workaround is just switching to solid color buttons.
,
Mar 6 2018
Is the background of the button something we control, or something that can be changed on a per document basis? If we control it and the document doesn't get a say, let's just switch to solid colour and move on for now.
,
Mar 6 2018
The following revision refers to this bug: https://pdfium.googlesource.com/pdfium_tests/+/b86c0ec9ee2aa3ba5e113a0e88a5c3292eb0fe2f commit b86c0ec9ee2aa3ba5e113a0e88a5c3292eb0fe2f Author: Henrique Nakashima <hnakashima@chromium.org> Date: Tue Mar 06 22:06:47 2018 Update expected png for XFA dropdown arrow without gradient. Related to https://pdfium-review.googlesource.com/c/pdfium/+/28090 Bug: chromium:592748 Change-Id: If18002bfa251c555f725dffa240dc8f678ad710c Reviewed-on: https://pdfium-review.googlesource.com/28130 Reviewed-by: dsinclair <dsinclair@chromium.org> [modify] https://crrev.com/b86c0ec9ee2aa3ba5e113a0e88a5c3292eb0fe2f/xfa_specific/fx/test_case_0025/Test_Drop_downList_expected.pdf.0.png
,
Mar 6 2018
The following revision refers to this bug: https://pdfium.googlesource.com/pdfium/+/3f4befb2622487f3fe915ead4f78c7e3b940dec3 commit 3f4befb2622487f3fe915ead4f78c7e3b940dec3 Author: Henrique Nakashima <hnakashima@chromium.org> Date: Tue Mar 06 22:25:03 2018 Remove axial gradients from XFA widgets. Most of the CPU time when moving around XFA forms is spent rendering these gradients. Bug: chromium:592748 Change-Id: I08c68c60996755a2be25243dfd2143b6cbb13af9 Reviewed-on: https://pdfium-review.googlesource.com/28090 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> [modify] https://crrev.com/3f4befb2622487f3fe915ead4f78c7e3b940dec3/xfa/fwl/theme/cfwl_scrollbartp.cpp [modify] https://crrev.com/3f4befb2622487f3fe915ead4f78c7e3b940dec3/xfa/fwl/theme/cfwl_pushbuttontp.cpp [modify] https://crrev.com/3f4befb2622487f3fe915ead4f78c7e3b940dec3/xfa/fwl/theme/cfwl_widgettp.h [modify] https://crrev.com/3f4befb2622487f3fe915ead4f78c7e3b940dec3/DEPS [modify] https://crrev.com/3f4befb2622487f3fe915ead4f78c7e3b940dec3/xfa/fwl/theme/cfwl_widgettp.cpp
,
Mar 8 2018
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by tsepez@chromium.org
, Mar 7 2016Owner: jun_f...@foxitsoftware.com
Status: Assigned (was: Untriaged)