Actions
Feature #11330
closed[PATCH] string.c: ensure String#freeze resizes internal buffer
Description
rb_str_freeze may resize oversized buffers to save memory, so favor
it over rb_obj_freeze. This is useful because IO methods do not
prematurely shrink buffers, as they are likely to be overwritten
with full data.
- string.c (Init_String): use rb_str_freeze for String#freeze
Will commit soonish
Files
Updated by normalperson (Eric Wong) about 6 years ago
- Status changed from Open to Closed
Actions
Like0
Like0