Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xiphias2
on Aug 21, 2023
|
parent
|
context
|
favorite
| on:
Transcoding Latin 1 strings to UTF-8 strings at 12...
Another option would be a vector of 256 16 bit entries and keeping the pointer advance vector as you suggested.
jojobas
on Aug 22, 2023
[–]
That would work, the only problem in either solution is double-writing 8 of the 16 bits on sequential ASCII characters. Might give it a try.
xiphias2
on Aug 22, 2023
|
parent
[–]
That shouldn't be a problem, they all go to the store buffer of the CPU, which should be able to handle 1 write/cycle.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: