mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 06:38:44 +00:00
layer.highlight searched the highlighted rows once for every id it was given, so a range of n rows took about n^2/2 comparisons, and the panel's preview of the rows (apply_row_click) did the same before sending the command. Both now keep a set of the highlighted rows beside the ordered list. layer.highlight builds the set only for more than 8 ids, so a one-row Ctrl/Cmd-click toggle does not pay for it. The rows, their order, the returned rows, the current layer and the revision are unchanged; tests compare the command with the per-id search on 3,000 rows and the widget with it on 5,000 rows.