Skip to content

perf(streaming-render): autonomous optimization for OpCase-Auto-Providercatalog-01 - #3819

Open
Raing5Days wants to merge 1 commit into
openBitFun:mainfrom
Raing5Days:perf/auto-opcase-auto-providercatalog-01-1108-1554
Open

Raing5Days wants to merge 1 commit into
openBitFun:mainfrom
Raing5Days:perf/auto-opcase-auto-providercatalog-01-1108-1554

Conversation

@Raing5Days

Copy link
Copy Markdown
Contributor

Summary

Autonomous optimization for OpCase-Auto-Providercatalog-01 in category streaming-render.

Target files:

  • src/web-ui/src/infrastructure/config/services/providerCatalog.ts

Key Improvements

  1. Catalog Matching Memoization: Added normalizedCatalogCache with a WeakMap for catalog entries, sorting longest-first to eliminate repetitive .flatMap and .sort allocations on every matchProviderCatalogItemByBaseUrl call.
  2. Provider Segment URL Parsing Cache: Added bounded LRU providerSegmentCache for extractProviderSegmentFromBaseUrl, caching domain hostname splitting and URL object parsing for instant lookup.

Metrics

  • Verified SLA: PASSED

Checklist

  • Autonomous flywheel verification passed.
  • Regression unit tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant