mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
The Swatches panel's body in craft-libs drops selected keys that no longer name a swatch or a group on every repaint while the panel is hovered, and checked each key with a scan of every swatch name. With 2,000 swatches in 20 groups and every swatch and group selected, one run compared about two million names. Every craft-libs rev moves from 4c330f6bd1 to dbc6b20e78, which reads the swatch names once per run and stops when it has found every selected name. Delete events and the footer's Delete answer the first lookup of a swatch or a group name with a scan and later lookups of that kind from a map of the names. Cargo.lock changes only the craft-libs source lines.