Skip to content

Conversation

@Overtorment
Copy link
Member

@Overtorment Overtorment commented Oct 20, 2025

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
Copy link
Collaborator

@limpbrains limpbrains left a comment

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
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.

4 participants