Skip to content

Optimize identity fetching - #14

Merged
ty-everett merged 3 commits into
masterfrom
fix/optimizations
Feb 12, 2026
Merged

ty-everett merged 3 commits into
masterfrom
fix/optimizations

Conversation

@BraydenLangley

Copy link
Copy Markdown
Collaborator

Description of Changes

  • Reuses the same client across searches so ContactsManager's in-memory cache persists instead of being discarded on every call.
  • New searches abort previous in-flight requests via AbortController + Promise.race, preventing stale queries from blocking the UI
  • Debounce increased from 300ms → 400ms to reduce redundant network requests
  • LRU cache optimized
  • Request ID system ensures only the latest query's results are applied to state

Testing Procedure

I have tested locally while linked to peerpay and have observed performance / UX improvements.

  • I have tested manually in my local environment

Checklist:

  • I have performed a self-review of my own code
  • I have run npm version patch so that my changes will trigger a new version to be released when they are merged

@BraydenLangley
BraydenLangley marked this pull request as draft February 12, 2026 23:24
@BraydenLangley

Copy link
Copy Markdown
Collaborator Author

Merge pending new ts-sdk version

@BraydenLangley
BraydenLangley marked this pull request as ready for review February 12, 2026 23:50
@ty-everett
ty-everett merged commit c42f4a4 into master Feb 12, 2026
7 checks passed
@ty-everett
ty-everett deleted the fix/optimizations branch February 12, 2026 23:54
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.

2 participants