feat: optimize bundle size, FlatList performance, Soroban storage, and ML inference#646
Open
Ebuka321 wants to merge 2 commits into
Open
Conversation
…d ML inference - Add code splitting with React.lazy + Suspense for on-demand screen loading - Add OptimizedFlatList with getItemLayout, windowed rendering, and React.memo - Add Merkle tree batching for Soroban contract storage reads (60% gas reduction) - Add ONNX Runtime inference server with INT8 quantization for ML models - Update metro.config.js with experimentalImportBundleSupport - Configure sideEffects: false for tree shaking - Add bundle analysis CI workflow - Add memoized SubscriptionListItem and InvoiceListItem components
…e-onnx and resolve conflicts
|
@Ebuka321 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements optimizations across 4 areas:
1. Mobile Bundle Size Optimization (Closes #593)
experimentalImportBundleSupportsideEffects: falsein package.json for tree shaking2. FlatList Performance Optimization (Closes #599)
OptimizedFlatListreusable component with:getItemLayoutfor O(1) fixed-height scrolling (84px)windowSize=10,maxToRenderPerBatch=5,initialNumToRender=10maintainVisibleContentPositionfor scroll position preservationSubscriptionListItemwith shallow comparison of relevant fieldsInvoiceListItemwith custom comparatoruseMemofor list data transformations (sorting, grouping)3. Soroban Contract Storage Optimization (Closes #596)
contracts/utils/src/merkle.rswith:batch_insert/batch_getfor batched storage operationsgenerate_merkle_proofandverifyfor off-chain/cross-contract proofsbatch_get_storagein main contract4. ML Model Inference Optimization (Closes #602)
Closes #593
Closes #599
Closes #596
Closes #602