[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[#63391] Access Modifiers (Internal Interfaces) — Daniel da Silva Ferreira <danieldasilvaferreira@...>
Hi,
3 messages
2014/06/28
[ruby-core:63312] [ruby-trunk - Feature #9963] Symbol.count
From:
kosaki.motohiro@...
Date:
2014-06-23 23:37:09 UTC
List:
ruby-core #63312
Issue #9963 has been updated by Motohiro KOSAKI. I understand symbol table detection is important for tuning ruby nowadays. But as far as I know, it is just because past ruby can't gc symbols. Now, ruby trunk has symbol GC. (https://bugs.ruby-lang.org/issues/9634). So, symbol table size is no longer important tuning parameter. If you have another use case, please elaborate more detail. ---------------------------------------- Feature #9963: Symbol.count https://bugs.ruby-lang.org/issues/9963#change-47362 * Author: David Cornu * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- I'd like to add a way to get the size of Ruby's symbol table. This is currently possible by using `Symbol.all_symbols`, however it builds a new array every time it's invoked which is pretty inefficient. The main use case for this would be to assist in detecting accidental symbol creation. I have a PR open (https://github.com/ruby/ruby/pull/639) that adds a `Symbol.count` method but this could also be added in the output of `GC.stat`. -- https://bugs.ruby-lang.org/