Sync places the content main of a swapped head in the head's orientation
by turning the main's subtree with the head's transform against the
main's. A head shrunk to a fraction of a pixel stores a transform that
carries its rounding, not a pure turn: a child nested into its content
main came out of a full sync slightly scaled and skewed, unlike the
settled copy.
The turn uses only the directions of both transforms' axes.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| world | baseline | now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels | 35.215 | 22.709 | 0.64 |
| edit-through-a-chain-of-dependents | 68.931 | 43.034 | 0.62 |
| library-update-into-copies | 83.083 | 53.487 | 0.64 |
| main-edit-among-many-shapes | 4.837 | 2.794 | 0.58 |
| main-edit-into-10-copies | 1.79 | 1.068 | 0.60 |
| main-edit-into-100-copies | 15.415 | 10.244 | 0.66 |
| main-edit-into-1000-copies | 153.086 | 105.368 | 0.69 |
| variant-switch-into-copies | 32.052 | 23.65 | 0.74 |
AI-assisted-by: claude-opus-5-5