SLPB-6: Optimize *InsertReplace operations in SLPDB

  • Project Type:
  • Reward: 500 USDH
  • Posted: November 25, 2019 by Jt Freeman
  • Contact at SLP Telegram group: @jscramer or @Blockparty_sh

Purpose

SLPDB currently performs much extra work than needed resulting in reduced performance due to to InsertReplace operations in db.ts. If these were optimized SLPDB could support more transactions per second. In handleMempoolTransaction  UpdateStatistics is called which performs a graphInsertReplace, for larger tokens this takes a long time.

Requirements

    1. Refactor code to only have to insert or delete the necessary documents
    2. Provide benchmarking results using the timings from running regtest tests
    3. Ensure SLPDB has same overall functionality as before (i.e. compare documents to another instance)

Resources

SLPDB

Contact

If you are interested in being eligible for this bounty, please contact @jscramer or @Blockparty_sh on Telegram before doing any work.

Other Recent Bounties

SLPB-2: Perform integrity checks in slp-list library

  • Posted: November 20, 2019 by Jt Freeman
  • Reward: 500,000+ SPICE

SLPB-4: Post Office for Electron Cash SLP

  • Posted: November 20, 2019 by Jt Freeman
  • Reward: 500 USDH