RubyVM::InstructionSequence.compile_option = { tailcall_optimization: true, trace_instruction: false } def add(a, b) return a if b == 0 add(a + 1, b - 1) end p add(5, 10000)
路路 发表于 2014-12-7 10:12
@taroxd
无视前面几行是你这样的写法当前编译没有生效
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |