Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
z92
on March 7, 2015
|
parent
|
context
|
favorite
| on:
The ups of downs of porting 50k lines of C++ to Go
Not without wasting a lot of space depending on the difference between average size of string vs maximum size of string.
logicchains
on March 8, 2015
|
next
[–]
We generally know the maximum string sizes for each property, and they're pretty small, so this wouldn't have been a problem.
a8da6b0c91d
on March 7, 2015
|
prev
[–]
You can use a string class like the one in Folly that decays from a fixed array to heap allocated space if the string gets too long.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: