Engine

A compact binary format that opens almost instantly and carries no executable payload.

It is a small C++20 library with no outside dependencies. Maps, tables, dictionaries and 3D meshes are written once and then opened by mapping the file into memory, so opening one costs almost nothing.

0.01 msto open a 38 MB map3,220 US counties, memory-mapped, on an M4 Pro
  • 45×
    faster for 5 counties0.04 ms memory-mapped against 1.8 ms copying the file in
  • 38 → 20 MB
    after quantizingunder about 22 m of precision lost

A 38 MB map of 3,220 US countiesmilliseconds, shorter is faster
  1. Open, copying~2
  2. Open, memory-mapped~0.01
  3. Read 50 counties, copying~1.8
  4. Read 50 counties, memory-mapped~0.12
  5. Read 5 counties, copying~1.8
  6. Read 5 counties, memory-mapped~0.04

Measured on an Apple M4 Pro.

What it stores

  • Maps from ESRI shapefiles, with region lookup by name and by point
  • Tables from CSV, dictionaries and 3D meshes
  • Vector graphics, schematics projected from KiCad, and boards

Where it runs

  • C++20 with a built-in compressor
  • A web and C API build, which is how IDoc reads it

Where it stands

In use inside IDoc for maps, charts, schematics and boards.