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
Updating the witness map is a fairly expensive operation, since we must append new nodes to a tree. This operation is linear to the amount of notes that haven't been spent yet, and each insertion is logarithmic. In total, we spendO(N log N) time, which is less than ideal, since that code is run from an async context.
Updating the witness map is a fairly expensive operation, since we must append new nodes to a tree. This operation is linear to the amount of notes that haven't been spent yet, and each insertion is logarithmic. In total, we spend
O(N log N)
time, which is less than ideal, since that code is run from anasync
context.namada-masp-indexer/chain/src/main.rs
Lines 218 to 239 in 6cc34cd
Since this blocks
tokio
from yielding the current worker thread, we should resort totokio::task::block_in_place
around this for loop.The text was updated successfully, but these errors were encountered: