mikolalysenko / mudb

Low latency state replication for the web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre-allocated void schema?

hediyi opened this issue · comments

due to the nature of the void schema type, having a bunch of void schemas allocated isn't necessary, we could

  • keep the class, and export a pre-allocated void schema
  • just make the void schema type a singleton

Its not clear that this is a significant cost. You could make a global variable I guess, but it doesn't seem like a big win.