mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
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.