diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-20 04:18:25 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-20 04:18:25 +0000 |
| commit | f02b261c8beb0cea7cc27f7a3fcef43a7900fde0 (patch) | |
| tree | 3046636322e5aa0c69f23dd906d0573e9a38a1dc /gc.c | |
| parent | 78bbe32d5f2139caa53fcfe8754262f92a5fd4d2 (diff) | |
| download | ruby-f02b261c8beb0cea7cc27f7a3fcef43a7900fde0.tar.gz ruby-f02b261c8beb0cea7cc27f7a3fcef43a7900fde0.tar.xz ruby-f02b261c8beb0cea7cc27f7a3fcef43a7900fde0.zip | |
* string.c (sym_eql): fail early to gain performance.
* string.c (sym_hash): cache hash value in aux.shared if possible.
* gc.c (rb_obj_id): no need to treat symbols specially.
* lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
longer return an array of strings, but of symbols.
* lib/delegate.rb (DelegateClass): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
| -rw-r--r-- | gc.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -2037,9 +2037,6 @@ rb_obj_id(VALUE obj) * 24 if 32-bit, double is 8-byte aligned * 40 if 64-bit */ - if (TYPE(obj) == T_SYMBOL) { - return (SYM2ID(obj) * sizeof(RVALUE) + (4 << 2)) | FIXNUM_FLAG; - } if (SPECIAL_CONST_P(obj)) { return LONG2NUM((long)obj); } |
