[#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:61643] Re: hash function for global method cache

From: =?KOI8-R?B?4NLJyiDzz8vPzM/X?= <funny.falcon@...>
Date: 2014-03-23 06:37:57 UTC
List: ruby-core #61643
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 could be wrong in any sentence. Time will show.
22.03.2014 7:20 ミマフリレマラチヤナフリ "Eric Wong" <normalperson@yhbt.net> ホチミノモチフ:

> 默ノハ ヒマフマラ <funny.falcon@gmail.com> wrote:
> > what's the profit from using binary tree in place of hash?
>
> Mainly: not caring about the quality of hash function :)
>
> Also: no extra allocation/resizing for buckets (but existing allocations
> get 1 pointer bigger than my ihash implementation).  Splay tree has
> self-optimizing behavior may also be good for us (but hurts CoW).
>
>
> Fwiw, I also played with critbit trees (with container_of), but could
> not figure out how to do non-recursive traversal nor conditional
> unlink/delete while traversing :<
>

In This Thread