タグ

ブックマーク / www.atdot.net (2)

  • Toward efficient Ruby 2.1

    Toward efficient Ruby 2.1 Koichi Sasada <ko1@heroku.com> Heroku, Inc. RubyKaigi 2013 Toward efficient Ruby 2.1 by Koichi Sasada 1 Agenda •Ruby 2.1 Schedule •Ruby 2.1 new “internal” features • Internal object management hooks • Object allocation tracing • GC hooks • RGenGC: Restricted Generational Garbage Collection ← Today’s main topicRuby 2.1 expected “internal” features • Sophisticated inline

    nilab
    nilab 2013/12/31
    Toward efficient Ruby 2.1 : RGenGC: Restricted Generational Garbage Collection
  • YARV(Yet Another RubyVM)アーキテクチャ

    これは? Compiler (compile.h, compile.c) VM Generator (rb/insns2vm.rb, insns.def)命令記述 VM (Virtual Machine, vm.h, vm.c)レジスタ スタックフレームメソッドローカルフレーム ブロックローカルフレーム クラスフレーム フレームデザインについての補足 メソッド呼び出しについて 例外例外テーブル rescue ensure break, return(ブロック中)、retry 定数の検索定数検索パス 最適化手法threaded code Peephole optimization inline method cache inline constant cache ブロックと Proc オブジェクトの分離 特化命令 命令融合 オペランド融合 stack caching JIT Compile

    nilab
    nilab 2007/08/15
    YARVアーキテクチャ (Yet Another RubyVM)
  • 1