Files
vectorcraft/crates
dotCooCoo d9dba9c467 Legacy .ai: gradient definitions are found by a key of their gradient
Each gradient fill looked for its definition by comparing its gradient
with every definition written so far, so a document with thousands of
distinct gradients spent most of the export in these comparisons.

The writer now keeps each definition's place under a key made from
every field of its gradient, the same key the editing data's writer
uses, which moves to a module both writers share. Each candidate under
a key is still compared in full, and the first equal definition in
definition order is used. Spot color names, written spot colors and
fonts are also found through maps and sets, while the lists the file is
written from keep their order. The written file is unchanged, byte for
byte.

On Linux, writing 10,006 gradient fills (5,000 distinct and 5,000 of 50
others) took 79 ms of thread CPU time through the index and 291 ms
comparing each definition in turn (median of 7 runs, release build).
2026-11-20 15:02:27 -08:00
..
2026-11-19 15:24:38 +07:00
2026-11-19 06:39:02 -08:00
2026-11-20 06:07:45 +07:00
…
2026-11-19 06:08:29 -08:00
2026-11-20 06:07:45 +07:00