Skip to content

Instantly share code, notes, and snippets.

@khellan
Created June 29, 2011 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khellan/1054466 to your computer and use it in GitHub Desktop.
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