[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61648] Re: hash function for global method cache

From: Eric Wong <normalperson@...>
Date: 2014-03-23 21:53:19 UTC
List: ruby-core #61648
Юрий Соколов <funny.falcon@gmail.com> wrote:
> Fixing hash function is much simpler. Unordered hash with open addressing
> could be much faster and have size not bigger than any binary tree
> (simplified specialized khash). Hope that inline hash will fix logarithmic
> search time is ridiculous.

I meant using binary tree for tiny per-class method tables/cache,
not a giant global cache.  I think we'll always need good hash,
so yeah, maybe deriving ID from sym.to_s.hash is better than
current increment.

In This Thread

Prev Next