mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
The menu model asked whether a command can run for every row that names it, so the rows that share a command (Effect's dialogs, Window's panels, the interface languages, the font sizes) ran the same check over and over on each edit and selection change. In a document with 20 selected rectangles one rebuild asked 1,910 times about 1,191 commands; Effect's dialog check alone ran 118 times. A rebuild now keeps each command's answer and reuses it for the tree's rows, the catalog's rows and Envelope Distort's Make and Reset rows. The answer depends on the command id and the app's state, not on the row's params, so the states and reasons are unchanged.