Repository navigation
SDK performance: profiling docs, lazy values, bundle tracking, request dedup - #1386
Merged
Kingsman-99 merged 5 commits intoNov 25, 2026
Merged
Conversation
|
@synkijojo-byte 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
SDK performance: profiling docs, lazy values, bundle tracking, request dedup
What was solved
#1325 — Add SDK performance profiling guide
Create a new SDK performance profiling guide as a documentation file, covering profiling tools, runnable examples, a benchmarking guide, optimization tips, and a practical checklist. This is a docs-only contribution; no source code, tests, or dependencies should change.
Addressed:
#1326 — Implement SDK lazy evaluation
Add a lazy-evaluation subsystem to the SDK: deferred computation wrappers, memoized caching, composition of lazy values, and tracking of lazy operations, integrated with existing SDK module patterns.
Addressed:
#1327 — Add SDK bundle optimization
Optimize the SDK bundle size by analyzing the existing bundle-size tooling (scripts/bundle-size-audit.ts, bundle-size-guard.ts, config, baseline, .size-limit.json, size-limits.config.ts), removing dead code, compressing assets, and tracking size against a baseline. The repo already has substantial bundle-size infrastructure, so the focused contribution is to wire up/strengthen size tracking and dead-code removal within that tooling rather than inventing a new system.
Addressed:
#1328 — Add SDK request deduplication
Add a request deduplication layer to the SDK so identical concurrent requests share a single in-flight promise, with optional short-lived caching, timeout enforcement, and tracking metrics. This requires a new dedup module plus wiring it into the SDK client's request path.
Addressed:
Changes
docs/PERFORMANCE_TUNING.md(modify)examples/profile-session.ts(modify)scripts/bundle-size-config.ts(modify)src/__tests__/requestDeduplicator.test.ts(create)docs/SDK_TUTORIALS.md(modify)examples/README.md(modify)scripts/bundle-size-guard.ts(modify)src/lazy.ts(create)src/__tests__/lazy.test.ts(create)scripts/bundle-size-audit.ts(modify)size-limits.config.ts(modify)src/sdk/client.ts(create)src/sdk/requestDeduplicator.ts(create)src/sdk/types.ts(create)Approach
Issues
Closes #1325
Closes #1326
Closes #1327
Closes #1328