Skip to content

Instantly share code, notes, and snippets.

@graysky
Created June 10, 2010 15:34
Show Gist options
  • Save graysky/433161 to your computer and use it in GitHub Desktop.
Save graysky/433161 to your computer and use it in GitHub Desktop.
include Marshal
o = MyObject.new
# Print number of bytes
puts dump(o).size
# vs.
puts 1.megabyte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment