microsoft / microcode

Coding "on the go" with the micro:bit (V2)
https://microsoft.github.io/microcode
MIT License
47 stars 18 forks source link

remove tile DB and move to functions #419

Closed tballmsft closed 11 months ago

tballmsft commented 11 months ago

Lots of space optimizations possible:

  1. enum Tid has separate ranges for sensor/filter/actuator/modifier, so don't need separate maps/lists anymore
  2. constraint data structure is overkill, replace by bit vector and gen/kill
  3. fieldEditors are only for two tids, so don't waste space on them
  4. Separate data structures for editor and compiler