composablesys / collabs

Collabs library monorepo

Home Page:https://collabs.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

16 bits per char in strings?

mweidner037 opened this issue · comments

DOMStrings are officially arrays of uint16's (even if not valid UTF-16): https://developer.mozilla.org/en-US/docs/Web/API/DOMString

So in situations where we convert byte arrays to strings so we can use them as map keys (e.g. AddWinsCSet), perhaps we can stuff 2 bytes per char instead of just 1, possibly reducing memory usage.