Revolutionary Update to Sync Trie Boosts Processing Efficiency!
Groundbreaking changes allow for swift batch insertions and enhanced synchronization, setting a new standard in performance.
Commit Details:
chore: Insert batched updates into the sync trie (#1964) ## Motivation Use batches to insert into the sync trie instead of 1 at a time. This allows us to use a threadpool for efficiency. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [X] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [ ] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. - [X] All [commits have been signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits) <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to optimize batch insertions in the merkle trie updates and enhance synchronization processes. ### Detailed summary - Improved batch insert performance in the merkle trie updates. - Refactored synchronization functions for efficiency. - Updated sleep functions for better synchronization handling. > The following files were skipped due to too many changes: `apps/hubble/src/network/sync/merkleTrie.ts`, `apps/hubble/src/addon/src/trie/merkle_trie.rs` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Wasif Iqbal <[email protected]> Co-authored-by: Shane da Silva <[email protected]> Co-authored-by: Sanjay <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>