Files
wren/src
Bob Nystrom c1980e4c58 refactor: embed string data as flexible array member in ObjString
Remove separate heap allocation for string text by converting ObjString.value from a char pointer to a C99 flexible array member. This eliminates the extra allocation in wrenNewUninitializedString and the corresponding free in wrenFreeObj, reducing memory fragmentation and pointer indirection for all string objects.
2015-01-07 15:20:12 +00:00
..