schemd engineering vectors

10 / 11

Keep compilation predictable

Use the built-in limits, cache stable output, and measure the SVG you actually ship.

01 / Limits

Reject oversized work early

Open in playground

Schemd puts hard limits around a single document:

Resource Limit
Source text 131,072 characters
Components 512
Connections 2,048
Wire crossings 32,768
SVG output 2,097,152 bytes

The orthogonal router also has a bounded search. A blocked route returns an error instead of hanging or drawing through a component.

Compile on the server or during a build. Cache diagrams that do not change, and avoid recompiling on every client keystroke unless the editor is debounced.

02 / Measure

Check a real output budget

Open in playground

The calculator compiles a bounded sample on the server. It reports source bytes, SVG bytes, level-nine gzip size, and the actual number of SVG elements.

Treat those numbers as measurements for this topology and mode, not as a universal benchmark. Labels, routes, markers, and interaction metadata all affect the result.

DIAGNOSTIC / EXACT SAMPLE

SVG performance budget

MEASURED
Budget output target