Closed benbalter closed 9 years ago
Fixes #65.
This roughly cuts the time to crawl a site in half and required some changes to how we memoize our Hydra instance in order to make it thread safe. TL;DR: Typhoeus::Hydra.hyrdra is thread safe, while Typhoeus::Hydra.new is not.
Typhoeus::Hydra.hyrdra
Typhoeus::Hydra.new
/cc https://github.com/oscardelben/firebase-ruby/issues/15, https://github.com/typhoeus/ethon/issues/85, https://github.com/typhoeus/ethon/issues/96
Fixes #65.
This roughly cuts the time to crawl a site in half and required some changes to how we memoize our Hydra instance in order to make it thread safe. TL;DR:
Typhoeus::Hydra.hyrdra
is thread safe, whileTyphoeus::Hydra.new
is not./cc https://github.com/oscardelben/firebase-ruby/issues/15, https://github.com/typhoeus/ethon/issues/85, https://github.com/typhoeus/ethon/issues/96