Created
April 9, 2014 06:59
-
-
Save nurettin/10233791 to your computer and use it in GitHub Desktop.
mechanize memory hog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser= Mechanize.new do |m| | |
m.history.max_size= 1 | |
end | |
@mech.get "https://www.google.com" | |
@mech.history.clear | |
GC.start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment