Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shuffel
· 4y ago · 0 comments
How are strings represented in the VM? Is there a benchmark for string operations?
Comments
[–]
shuffel
OP
4y ago
Strings appear to be represented as arrays with elements which are 4 bytes in size, with 30 numeric bits for each character:
https://github.com/FastVM/minivm/blob/4906256b2dc16e227cad7e...
https://github.com/FastVM/minivm/blob/4906256b2dc16e227cad7e...