Skip to content

Instantly share code, notes, and snippets.

@rorhug
Created April 6, 2014 17:31
Show Gist options
  • Select an option

  • Save rorhug/10009087 to your computer and use it in GitHub Desktop.

Select an option

Save rorhug/10009087 to your computer and use it in GitHub Desktop.
Ruby tail recursion
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment