bitcoin/bitcoin — pull request #670 by gavinandresen (2011-12-01 14:11:40+00:00)
Title: Speed up RPC authentication (reworked pull from Joel Katz)

Caches rpc username and password in static vars, to avoid the overhead of a lookup into mapArgs. Mining pools that handle a lot of getwork calls like this.

Note: I also did a quick benchmark of using a boost::unordered_map for mapArgs instead of a std::map, but unordered_map was slightly slower.