Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jiggawatts
7 months ago
|
parent
|
context
|
favorite
| on:
Algorithms for Modern Processor Architectures
Also: Java, DotNet, and Windows all use 2-byte char types.
looperhacks
7 months ago
[–]
Akchyually! These days, Java uses Latin1 if no characters outside Latin1 are used. Only if full Unicode is necessary, it uses UTF-16
josephg
7 months ago
|
parent
[–]
Apple does something similar for strings in objc and Swift. They do lots of other optimisations besides - like small string optimisation for short strings to avoid heap allocations.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: