[WIP] Wallet: Cache CWalletDB pointer in CWallet to improve performance #8026

pull pstratem wants to merge 6 commits into bitcoin:master from pstratem:2016-05-08-wallet-speed changing 7 files +86 −67
  1. pstratem commented at 3:46 AM on May 9, 2016: contributor

    No description provided.

  2. pstratem force-pushed on May 9, 2016
  3. pstratem force-pushed on May 9, 2016
  4. jonasschnelli added the label Wallet on May 9, 2016
  5. pstratem force-pushed on May 9, 2016
  6. pstratem cross-referenced this on May 9, 2016 from issue Increase DEFAULT_KEYPOOL_SIZE to 10000. by pstratem
  7. pstratem force-pushed on May 9, 2016
  8. pstratem force-pushed on May 9, 2016
  9. pstratem force-pushed on May 9, 2016
  10. pstratem force-pushed on May 10, 2016
  11. pstratem force-pushed on May 10, 2016
  12. pstratem force-pushed on May 10, 2016
  13. TheBlueMatt commented at 11:09 PM on May 11, 2016: contributor

    Can you fix the tests for this?

  14. pstratem commented at 11:14 PM on May 11, 2016: contributor

    @TheBlueMatt I'm not sure whether it's broken or if the tests are broken.

  15. pstratem force-pushed on May 12, 2016
  16. pstratem commented at 12:54 AM on May 12, 2016: contributor

    Indeed all the tests pass except for the tests which fail on master #8045

  17. pstratem force-pushed on May 12, 2016
  18. pstratem force-pushed on May 12, 2016
  19. pstratem force-pushed on May 12, 2016
  20. pstratem force-pushed on May 12, 2016
  21. pstratem force-pushed on May 12, 2016
  22. pstratem force-pushed on May 12, 2016
  23. MarcoFalke commented at 10:53 AM on May 12, 2016: member

    @pstratem The backupwallet rpc appears to be no longer working

  24. pstratem force-pushed on May 14, 2016
  25. Replace pwalletdbEncryption with pwalletdb. ae66aeb669
  26. Use pwalletdb in CWallet::IncOrderPosNext 577192c65c
  27. Move CWallet::AddToWallet to use CWallet::pwalletdb ea26ca76ab
  28. Move CWallet::AddAccountingEntry to use CWallet::pwalletdb 2e93924166
  29. Move CWallet::SetMinVersion to use CWallet::pwalletdb cd86a710fe
  30. pstratem force-pushed on May 14, 2016
  31. Prevent deadlock in BackupWallet. 85a02715c5
  32. in src/wallet/wallet.h:None in ae66aeb669 outdated
     622 | +        pwalletdb = new CWalletDB(strWalletFile, "cr+");
     623 | +    }
     624 | +
     625 | +    void CloseDB()
     626 | +    {
     627 | +        if (pwalletdb) {
    


    sipa commented at 4:13 AM on May 15, 2016:

    The conditional is unneeded: deleting NULL is defined to be a nop.

  33. pstratem commented at 11:06 PM on May 16, 2016: contributor

    Going to reorganize these changes

  34. pstratem closed this on May 16, 2016

  35. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC