[#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:61425] Re: [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals

From: Charlie Somerville <charliesome@...>
Date: 2014-03-12 00:09:11 UTC
List: ruby-core #61425
On Wednesday, 12 March 2014 at 11:06 am, Eric Wong wrote:
> This gives a ~12% speedup to the bm_so_count_words.rb benchmark
> which does many small mallocs. This pattern is common in some Ruby
> scripts doing text processing, so maybe it is worth doing.


This is pretty common in large applications (eg. Rails apps), so this may be beneficial there.

I’ll perform some experiments and report back.

In This Thread