mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A bool keeps its turn and flips when fitting it resets its transform, so sync orients its children from them, choosing between the turn before the flips and the flips before the turn by which is nearer the bool's axes. A fitted bool's axes are the identity, which tells neither apart, and the choice fell to the flips first: a flipped, turned copy bool gave its child a half-turned orientation, which a sync of the settled state did not. The turn now goes first on a tie, as a flip of a turned shape stores it. Benchmark (lower quantile, ms): | world | baseline | now | mean | ratio | |------------------------------------+----------+---------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 22.783 | 25.354 | 0.65 | | edit-through-a-chain-of-dependents | 68.931 | 51.070 | 52.568 | 0.74 | | library-update-into-copies | 83.083 | 54.684 | 63.220 | 0.66 | | main-edit-among-many-shapes | 4.837 | 2.978 | 3.782 | 0.62 | | main-edit-into-10-copies | 1.79 | 1.212 | 1.281 | 0.68 | | main-edit-into-100-copies | 15.415 | 12.907 | 13.628 | 0.84 | | main-edit-into-1000-copies | 153.086 | 107.916 | 123.169 | 0.70 | | variant-switch-into-copies | 32.052 | 25.136 | 29.877 | 0.78 | AI-assisted-by: claude-opus-5-5