Skip to content

Optimize path decoration with redundancy check#1439

Open
peaR-red wants to merge 1 commit intopgf-tikz:masterfrom
peaR-red:peaR-red-patch-1
Open

Optimize path decoration with redundancy check#1439
peaR-red wants to merge 1 commit intopgf-tikz:masterfrom
peaR-red:peaR-red-patch-1

Conversation

@peaR-red
Copy link
Copy Markdown
Contributor

@peaR-red peaR-red commented Mar 28, 2026

Instruct the decoration automaton to drop any moveto that is purely redundant by updating \pgf@path@last... to \pgfpoint@decorate@existingpathlast and evaluates the x and y coordinates against \pgf@path@last... counterparts to suppress unnecessary moveto operations.

Motivation for this change
First reported in https://tex.stackexchange.com/q/761240/399147, nested decorations in the decorate subpath disconnect them from the rest of the path. The effect is most visible with --cycle.

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

Added redundancy check to avoid unnecessary moveto commands. (see https://tex.stackexchange.com/q/761240/399147)
@peaR-red
Copy link
Copy Markdown
Contributor Author

Requesting follow-up...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant