ruby-changes:33361
From: nari <ko1@a...>
Date: Wed, 26 Mar 2014 23:19:15 +0900 (JST)
Subject: [ruby-changes:33361] nari:r45440 (trunk): [DOC] Add NEWS about Symbol GC
nari 2014-03-26 23:19:10 +0900 (Wed, 26 Mar 2014) New Revision: 45440 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45440 Log: [DOC] Add NEWS about Symbol GC Modified files: trunk/NEWS Index: NEWS =================================================================== --- NEWS (revision 45439) +++ NEWS (revision 45440) @@ -23,6 +23,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L23 * Symbol * New methods * Symbol.find(str) returns whether given string is defined as symbol or not. + * Improvements + * Most symbols in Ruby level are GC-able (generated by String#to_sym and + String#intern) === Core classes compatibility issues (excluding feature bug fixes) @@ -89,3 +92,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L92 However, weaknesses in hash distribution can no longer be masked by prime number-sized tables, so extensions may need to tweak hash functions to ensure good distribution. + +* rb_sym2str() added. This is almost same as `rb_id2str(SYM2ID(sym))` + but not pinning a dynamic symbol. + +* struct RSymbol added. This represents a dynamic symbol as object in + Ruby's heaps. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/