ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:69870] [Ruby trunk - Feature #11330] [Open] [PATCH] string.c: ensure String#freeze resizes internal buffer
       [not found] <redmine.issue-11330.20150704052826@ruby-lang.org>
@ 2015-07-04  5:28 ` normalperson
  0 siblings, 0 replies; only message in thread
From: normalperson @ 2015-07-04  5:28 UTC (permalink / raw)
  To: ruby-core

Issue #11330 has been reported by Eric Wong.

----------------------------------------
Feature #11330: [PATCH] string.c: ensure String#freeze resizes internal buffer
https://bugs.ruby-lang.org/issues/11330

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Eric Wong
----------------------------------------
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--------------------------------
0001-string.c-ensure-String-freeze-resizes-internal-buffe.patch (2.21 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-04  5:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11330.20150704052826@ruby-lang.org>
2015-07-04  5:28 ` [ruby-core:69870] [Ruby trunk - Feature #11330] [Open] [PATCH] string.c: ensure String#freeze resizes internal buffer normalperson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).