Quick tip for Ruby Mechanize. I wrote a fairly complex, long-running script that ate memory like crazy. Couldn't figure out at first what the problem is, then realized (after checking the source) tried this: @agent.max_history= 5. Worked like a charm.
Posted by Aron
Sun, 23 Mar 2008 13:31:00 GMT
Tags Mechanize, Ruby | 184 comments | no trackbacks