GitBulletin

Repository: farcasterxyz/hub-monorepo

Revolutionary Update Enhances Efficiency of gRPC APIs!

2024-05-01 15:28:01 UTC

Major code refinement eliminates redundant encoding and decoding, streamlining message handling for optimal performance.

Commit Details:

fix: prevent unnecessary encode/decode in grpc APIs (#1969) ## Motivation Prevent unnecessarily encoding/decoding messages when sending to/from APIs ## 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 RPC APIs and message handling in the `hubble` app. ### Detailed summary - Optimized `get_many_messages` to return message bytes instead of decoded messages - Updated message handling in various store modules to work with message bytes - Replaced unnecessary encode/decode operations in RPC APIs > The following files were skipped due to too many changes: `apps/hubble/src/addon/src/store/message.rs`, `apps/hubble/src/storage/stores/verificationStore.ts`, `apps/hubble/src/storage/stores/reactionStore.ts`, `apps/hubble/src/storage/stores/castStore.ts`, `apps/hubble/src/storage/stores/linkStore.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

Search Similar