Commit Graph
2 Commits
Author SHA1 Message Date
Evan Shaw ac44be651c style: remove trailing semicolons from assignment statements in delta_blue.wren benchmark 2015-01-06 19:06:44 +00:00
Evan Shaw 0dcd7bbffc refactor: embed string data as flexible array member in ObjString struct
Remove separate heap allocation for string text by storing it directly in the ObjString struct using a C99 flexible array member. This eliminates the need for an extra pointer indirection and a separate memory allocation call in wrenNewUninitializedString, while also simplifying the cleanup logic in wrenFreeObj by removing the explicit deallocation of the string's value buffer.
2015-01-05 02:03:50 +00:00