You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This nullish coalescing operator will wait for getSpendableNoteByNullifier to complete before attempting getSwapByNullifier.
Potentially, these promises could be raced to completion, possibly leading to benefit if the nullifier represents a swap. An index by nullifier is present, so this may not be a significant benefit.
Difficulty: An absent item will return with 'undefined', preventing the simplest Promise.race technique.
The text was updated successfully, but these errors were encountered:
turbocrime
changed the title
Optimization: Block processor could query notes and swaps in parallel instead of in sequence
Block processor could query notes and swaps in parallel instead of in sequence
Feb 2, 2025
prax/packages/query/src/block-processor.ts
Lines 501 to 510 in 7bcf54d
This nullish coalescing operator will wait for
getSpendableNoteByNullifier
to complete before attemptinggetSwapByNullifier
.Potentially, these promises could be raced to completion, possibly leading to benefit if the nullifier represents a swap. An index by nullifier is present, so this may not be a significant benefit.
Difficulty: An absent item will return with 'undefined', preventing the simplest
Promise.race
technique.The text was updated successfully, but these errors were encountered: