Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: speed-up getting utxo (improves send screen performance)#8138

Merged
GladosBlueWallet merged 1 commit into
masterfrom
refactor-send-screen-speedup
Oct 20, 2025
Merged

refactor: speed-up getting utxo (improves send screen performance)#8138
GladosBlueWallet merged 1 commit into
masterfrom
refactor-send-screen-speedup

Conversation

@Overtorment

@Overtorment Overtorment commented Oct 20, 2025

Copy link
Copy Markdown
Member

getDerivedUtxoFromOurTransaction() was calling .getTransactions() in cycle, which is a heavy operation. simply caching resolved performance issues on midsize-large wallets


Note

Cache getTransactions() when deriving UTXOs and add a Measure utility to time getUtxo in SendDetails, improving send screen performance.

  • Wallets:
    • Cache getTransactions() result in getDerivedUtxoFromOurTransaction() to avoid repeated calls when filtering spent UTXOs in:
      • class/wallets/abstract-hd-electrum-wallet.ts
      • class/wallets/legacy-wallet.ts
  • UI (Send):
    • Time UTXO retrieval in screen/send/SendDetails.tsx fee recalculation via new Measure('getUtxo').
  • Utils:
    • Add class/measure.ts simple timing helper.

Written by Cursor Bugbot for commit c943aba. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@Overtorment Overtorment force-pushed the refactor-send-screen-speedup branch from 4198626 to c943aba Compare October 20, 2025 11:56
Comment thread class/measure.ts

@limpbrains limpbrains left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@GladosBlueWallet GladosBlueWallet merged commit a9648cb into master Oct 20, 2025
14 checks passed
@GladosBlueWallet

Copy link
Copy Markdown
Collaborator

Unbelievable. You, [subject name here], must be the pride of [subject hometown here]!

@GladosBlueWallet GladosBlueWallet deleted the refactor-send-screen-speedup branch October 20, 2025 15:35
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.

3 participants