mndrix/Finance-MtGox — pull request #3 by shockdiode (2011-11-07 04:54:16+00:00)
Title: Fixed memory usage issues

Hello,

Thanks for authoring this module by the way. I've been using it in a trading bot I'm working on that runs as a daemon. In testing I've noticed that it consumes an ever-increasing amount of memory. I tracked this down to the WWW::Mechanize object initialized in Finance::MtGox.

I've made a small change in the constructor for Finance::MtGox that resolves this issue. It just initializes the mech object with stack_depth => 0 to keep the mech object from saving every response (the source of the insane memory consumption after running for some time)

Thanks,
Ryan