Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not without wasting a lot of space depending on the difference between average size of string vs maximum size of string.


We generally know the maximum string sizes for each property, and they're pretty small, so this wouldn't have been a problem.


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: