[ruby-core:64970] Re: [ruby-trunk - Bug #10212] [Open] MRI is not for lambda calculus

From: Eric Wong <normalperson@...>
Date: 2014-09-11 19:17:52 UTC
List: ruby-core #64970
Eric Wong <normalperson@yhbt.net> wrote:
> I think the xcalloc was overreaching, though.
> 
> Removing redundant zero from env_alloc + rb_proc_alloc has a measurable
> effect:
> 
> http://80x24.org/misc/m/1410209049-23179-1-git-send-email-e%4080x24.org.txt
> 
> Makes code a little more fragile, though, so we must be careful about
> GC...

Any comment?  I think the improvement is worth it since proc allocation
only happens in 2 places, and env allocation in 1 place.

> Speedup ratio: compare with the result of `clear' (greater is better)
> name	nozero
> app_lc_fizzbuzz	1.089

In This Thread

Prev Next