Skip to content

Instantly share code, notes, and snippets.

@khellan
Created June 29, 2011 18:09
Show Gist options
  • Select an option

  • Save khellan/1054466 to your computer and use it in GitHub Desktop.

Select an option

Save khellan/1054466 to your computer and use it in GitHub Desktop.
Yajl parsing memory leak with Rubinius pre2.0.0
!/usr/bin/env ruby
require "rubygems"
require "yajl"
input = ARGV.shift
count = 0
Yajl::Parser.parse(open(input)) {|line| count += 1}
puts count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment