Opening fill and stroke menu causes selection and pasting slowdowns in diagrams involving many arrowheads

Summary:

  • Opening the Fill and Stroke menu causes selection and copying operations involving arrows to take much longer than had the menu not been open.

  • The file must contain a large number of arrowsmarkers (~300 or so, see the attached file).

  • The selection must contain at least one arrow, though it is slower the more arrows the selection contains.

  • The Fill and Stroke menu needs not be open at the time of selecting / pasting the arrows---as long as it has at some time been open since Inkscape started, the issue will occur.

  • I think the Fill and Stroke menu is the only one that causes this issue; I tried a few other menus and didn't see the slowdown.

Steps to reproduce:

  • Open Inkscape
  • Ensure that the Fill and Stroke (Shift-Ctrl-F) menu is closed. If it is not closed, close it and restart Inkscape so that it is closed upon opening.
  • Open a file that contains many arrows (~300 should be sufficient, see attached file at the bottom)
  • Select the arrows (by using the selection tool). This should not take long, as expected.
  • Copy and paste the arrows. Copying and pasting should not take very long, as expected.
  • Delete the pasted arrowheads.
  • Open the Fill and Stroke menu (Shift-Ctrl-F). This will probably take a long time (which is not expected).
  • Select the arrows (either by Ctrl-A or using the selection tool). This will probably take a long time (which is not expected)---much longer than before the Fill and Stroke menu was opened.
  • Copy and paste the arrows. Copying and pasting will probably take a long time (which is not expected)---much longer than before the Fill and Stroke menu was opened.
  • Try copying and pasting the lines in the file (lines without arrowheads). This should take significantly less time than copying and pasting the arrows.
  • Try copying and pasting just a few arrows (not the entire ~300). This will probably take just about as long as pasting the entire ~300.
  • Try copying and pasting a selection containing both some lines and some arrows. This will probably take just about as long as pasting the entire ~300 arrows.

What happened?

After opening the fill and stroke menu, selection and pasting operations involving arrows in a file with many arrows takes a long time---much longer than had the menu never been opened.

What should have happened?

Opening the fill and stroke menu should not affect the speed of selection and pasting operations involving arrows in a file with many arrows.

At the very least, closing the menu should restore the speed of these operations. Currently, it doesn't matter whether the menu was open or closed at the time of selecting/pasting---as long as it was open once, the issue is caused.

...

Sample attachments:

many-arrows.svg

Version Info:

- Inkscape Version:

  Inkscape 1.0.2 (e86c870879, 2021-01-15)
    Pango version: 1.48.2

- Operating System: Arch Linux x86_64 5.10.16-arch1-1
- Operating System version: (rolling release, updated yesterday)
Edited by Michael MacLeod