Y
Hacker News
new
|
ask
|
show
|
jobs
by
shuffel
1629 days ago
How are strings represented in the VM? Is there a benchmark for string operations?
1 comments
shuffel
1628 days 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...
link
https://github.com/FastVM/minivm/blob/4906256b2dc16e227cad7e...
https://github.com/FastVM/minivm/blob/4906256b2dc16e227cad7e...