[ruby-cvs:54601] normal:r47453 (trunk): vm_core.h (rb_env_t): use flexible array

normal at ruby-lang.org normal at ruby-lang.org
Tue Sep 9 04:38:24 JST 2014


normal	2014-09-09 04:38:22 +0900 (Tue, 09 Sep 2014)

  New Revision: 47453

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47453

  Log:
    vm_core.h (rb_env_t): use flexible array
    
    * vm_core.h (rb_env_t): use flexible array
      This reduces allocations and speeds up the lambda calculus
      fizzbuzz (bm_app_lc_fizzbuzz.rb) benchmark [ruby-core:64858]
    * proc.c (get_local_variable_ptr): deconst to adjust for flex array
    * vm.c (env_mark, env_free, env_memsize): remove check for env->env
    * vm.c (env_alloc): single allocation for flex array
    * vm.c (vm_make_env_each): adjust env_alloc call

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list