Revolution in Data Management: Sync Trie Bulk Inserts Get a Major Overhaul!
Optimized operations promise faster performance and enhanced efficiency, paving the way for seamless data synchronization in tech applications.
Commit Details:
chore: Cleanup sync trie bulk inserts (#1973) ## Motivation Cleanup the sync trie bulk inserts to insert multiple items at a time ## 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 - [X] 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 This PR focuses on optimizing trie batch inserts and improving sync ID handling. ### Detailed summary - Refactored trie batch insert operations for efficiency - Updated sync ID deletion methods for better performance - Adjusted queue sizes for gossip messages and sync trie operations - Enhanced error handling and message submission logic > The following files were skipped due to too many changes: `apps/hubble/src/network/sync/merkleTrie.test.ts`, `apps/hubble/src/network/sync/merkleTrie.ts`, `apps/hubble/src/addon/src/trie/merkle_trie.rs`, `apps/hubble/src/addon/src/trie/trie_node.rs`, `apps/hubble/src/addon/src/trie/trie_node_tests.rs` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->