Files
vectorcraft/crates
dotCooCoo d19a3305a4 EPS import: complexity tests count the work done instead of timing it
Four EPS import tests asserted elapsed time (5 s, 20 s, a 20 s receive
timeout, and 1,000 copies against 5 times one copy). A busy test runner
could fail them, and a slower run that was still bounded could pass them.
Each now reads a test-only counter on its own thread:

- `]` without its `[`: the operand stack slots that `[` and `]` look at.
  200,000 brackets look at no more than 4 slots each.
- The outline check: the point-to-segment distances it works out. A look
  drawn 5,000 times works out no more than `MAX_OUTLINE_PAIRS`.
- Objects on a path: the paths and objects the records measure. A
  thousand copies of a record measure as many as one copy.
- File fonts: the glyphs `fits` compares. A string of 250,000 of one
  character makes fewer comparisons than it has glyphs.

Outside tests the counters do nothing.
2026-11-28 01:55:59 -08:00
..
2026-11-27 19:12:32 -08:00
…
2026-11-27 22:29:29 -08:00