diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-26 14:19:10 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-26 14:19:10 +0000 |
commit | e6dcb3b174d6bfaafe623a0e4a8270989e1eca9b (patch) | |
tree | 32696853e17050c2a02e96305d6bd70fdb02828b | |
parent | bb1d0d280781b6bf0b9798f8603208c2ef8b1459 (diff) | |
download | ruby-e6dcb3b174d6bfaafe623a0e4a8270989e1eca9b.tar.gz |
[DOC] Add NEWS about Symbol GC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -23,6 +23,9 @@ with all sufficient information, see the ChangeLog file. * 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 ChangeLog file. 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. |