Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究不同的 Ruby 解释器如何执行方法执行(例如,当您在 ruby 中调用方法时,解释器采取哪些步骤来查找和执行它,以及其中涉及哪些结构)。我正在尝试比较正在使用的不同方法的性能。
我正在研究的解释器是:MRI、YARV、JRuby、Rubinius、Ruby EE
我正在寻找关于我应该检查解释器源中哪些文件的任何一般性指针,以及你们可以提供的关于该主题的任何其他一般性信息。
谢谢!
这篇文章很好地描述了 JRuby 中的方法分派。描述其内部结构的 JRuby Wiki 页面很好地补充了它。