wasm2lua
wasm2lua copied to clipboard
Consider using a bitvector for lua memory type tracking.
Currently memory types are tracked using a (hash)table.
Performing a table lookup for every memory operation is probably not the best idea. Type ids only take up 2 bits of space, so we should be able to store 16 cells (64 bytes) worth of type ids per bitvector cell.