Hacker News new | past | comments | ask | show | jobs | submit login

With inline data, only one malloc is needed for the buffer housekeeping and character data. It's also probably slightly better for cache performance since the housekeeping data and string data are together.



Ah I see. If you want to refer to a string that was not part of this allocation you would use the other str_t type,




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: