bitcoin/bitcoin — pull request #4702 by cozz (2014-08-15 01:15:20+00:00)
Title: [Wallet] Replace OrderedTxItems(..) with in-memory map

I was wondering why adding 18000 transactions to the wallet takes ages.
One of the reasons is CWallet::OrderedTxItems(..).
So maintain the map in-memory instead of generating it all the time.
This pull should not change any functionality.