[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69090] [Ruby trunk - Bug #11127] [Open] Symbol#== allocates at least one string, possibly two
From:
headius@...
Date:
2015-05-07 21:00:17 UTC
List:
ruby-core #69090
Issue #11127 has been reported by Charles Nutter. ---------------------------------------- Bug #11127: Symbol#== allocates at least one string, possibly two https://bugs.ruby-lang.org/issues/11127 * Author: Charles Nutter * Status: Open * Priority: Normal * Assignee: * ruby -v: all versions * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Symbol#== is implemented by Comparable, which uses Symbol#<=>, which coerces the symbol to a String so it can use String#<=> logic. Most people don't know this, but it adds many hidden allocations to any Symbol-heavy code that that's doing lots of == comparisons. I propose that Symbol should define its own == that doesn't have to do the extra work for <=>. The other Comparable methods are not important because Symbols usually compared using == or ===. -- https://bugs.ruby-lang.org/