mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A fill child of a grid takes the size of its content, resized along its own axes. Those axes were read from the stored shape, while the same modifiers may be turning it: turning a grid copy whose child fills its width resized the child along its unturned axes and skewed it, and a full sync then placed it unskewed. The content size, and the check for a child turned in its grid, use the frame the modifiers being calculated leave the shape in. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 21.852 | 0.62 | | edit-through-a-chain-of-dependents | 68.931 | 39.822 | 0.58 | | library-update-into-copies | 83.083 | 47.443 | 0.57 | | main-edit-among-many-shapes | 4.837 | 2.162 | 0.45 | | main-edit-into-10-copies | 1.79 | 1.028 | 0.57 | | main-edit-into-100-copies | 15.415 | 10.453 | 0.68 | | main-edit-into-1000-copies | 153.086 | 103.422 | 0.68 | | variant-switch-into-copies | 32.052 | 20.087 | 0.63 | AI-assisted-by: claude-opus-5-5