Duplicating path with colored marker is slow (1 sec)

Bug #1529944 reported by Greg Holst
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

When using the keyboard shortcut (Ctrl+D) to duplicate an object, it is usually lightning fast. When duplicating a path with a colored marker on one end (an arrow for instance), the duplication takes about 1 second. I use this 100s of times per day so the time really adds up. I assume it's from the new feature in 0.91 where it automatically colors the marker to match the stroke color. I hope this can be sped up in the future. It is obviously faster than using "extensions->modify path->color marker to match stroke" that we had to use in the past but since I'm just duplicating the object, the color matching code doesn't really need to be run again. It already matches. It was plenty fast in 0.48.4.

Windows 7 64 bit, inkscape 0.91 (latest stable release as of this posting)

description: updated
Revision history for this message
su_v (suv-lp) wrote :

On 2015-12-29 21:00 (+0100), Greg Holst wrote:
> When duplicating a path with a colored marker on one end (an arrow
> for instance), the duplication takes about 1 second.

Please attach a test case (Inkscape SVG file), and your current Inkscape preferences file to allow further investigation on other systems [1].

Likely the underlying issue is the same as the performance regression already tracked in:
* Bug #1506026 “Performance regressions with auto-updating marker colors (Inkscape >= 0.91)”
  https://bugs.launchpad.net/inkscape/+bug/1506026

[1] On Windows, you can find Inkscape's preferences file 'preferences.xml' for the current user by pasting this address into Explorer's addressbar:
%APPDATA%\inkscape

Changed in inkscape:
importance: Undecided → Medium
status: New → Incomplete
tags: added: markers performance regression
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows 7, Inkscape 0.91 and trunk rev. 14761.

Steps:
1. Open the attached test file.
2. Select one of the 16 arrows.
3. Duplicate it.

With 0.48.5, the duplication is immediate, with 0.91, the delay increases with the number of objects. The very first duplications are quite fast (but not as fast as with 0.48.5), but then it takes about a second with the 10th object.

Changed in inkscape:
milestone: none → 0.92
status: Incomplete → Triaged
Revision history for this message
Martín A (masinari) wrote :

Hi,

I'm experiencing the same issue with objects that have a marker, an arrow specifically. The delay for duplicating (also with copying and pasting) a line without a marker is almost instantaneous, while having an arrow for a marker adds like 1s delay.

OS: Windows 10
Inkscape version: 1.0.1 (3bc2e813f5, 2020-09-07)

Tks

Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Closing as not replicated in Inkscape 1.2-alpha with the test file in #2. There were a lot of marker refactoring efforts recently, so that's good.

Closed by https://gitlab.com/jhofinger

Changed in inkscape:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.