Commit f50eaca
Remove is_beyond_limit check from AddressList to fix O(N²) hang
AddressList.on_update() calls wallet.is_beyond_limit(address, is_change)
for every address. That method does addr_list.index(address) which is
O(N) per call, making the overall loop O(N²). On a wallet with 137,776
addresses, this single check causes a ~12 second GUI freeze every time
the address list is rebuilt.
The check only colors rows red for addresses beyond the gap limit — a
minor visual indicator. Removing it eliminates the O(N²) cost entirely.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fac50cc commit f50eaca
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
| |||
0 commit comments