From: SASADA Koichi Date: 2013-02-14T07:59:46+09:00 Subject: [ruby-core:52231] Re: [ruby-trunk - Feature #7791][Feedback] Let symbols be garbage collected (2013/02/14 1:38), Evan Phoenix wrote: > I have a worry about Koichi's approach. There are going to have to be > places where (b) type Symbols are converted into (a) type Symbols. All > those places will turn into DOS vectors. This is because SYMBOL_P() will > have to detect both types, but calling SYM2ID() will have to convert > type (b) into type (a) so that an ID can be returned. > > Doing a quick grep of 1.9.3-p194, I see 93 uses of SYM2ID, so all of > those would have to be changed/audited as well any future uses of SYM2ID > would have to be done very carefully. > > This is not unsurmountable, but it's something that will have to be > dealt if the 2 types approach is used. Absolutely. We need to change code bases to keep (b) symbols. It may affect compatibility of C extensions. This is why I repeating it is `unverified'. -- // SASADA Koichi at atdot dot net