Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(trie): more logs for proofs #13843

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Conversation

shekhirin
Copy link
Collaborator

No description provided.

@shekhirin shekhirin added C-enhancement New feature or request A-observability Related to tracing, metrics, logs and other observability tools A-trie Related to Merkle Patricia Trie implementation labels Jan 17, 2025
@shekhirin shekhirin changed the title feat(trie): log elapsed time for proof blinded providers feat(trie): more logs for proofs Jan 17, 2025
@@ -135,6 +145,8 @@ where
H: HashedCursorFactory + Clone + Send + Sync,
{
fn blinded_node(&mut self, path: &Nibbles) -> Result<Option<RevealedNode>, SparseTrieError> {
let start = Instant::now();
Copy link
Collaborator

Choose a reason for hiding this comment

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

we call this a bunch because this is called in a loop.

imo this clock overhead is too expensive to perform on this level

Copy link
Collaborator Author

@shekhirin shekhirin Jan 27, 2025

Choose a reason for hiding this comment

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

it's called in a loop but only for those nodes that are blinded, and we usually don't have a lot of them that need to be revealed. Nevertheless, added a check for the TRACE level for target to be enabled, so that we don't do Instant::now when not needed.

@shekhirin shekhirin requested a review from mattsse January 27, 2025 10:52
@shekhirin shekhirin added this pull request to the merge queue Jan 27, 2025
Merged via the queue into main with commit 3538c53 Jan 27, 2025
43 checks passed
@shekhirin shekhirin deleted the alexey/proof-blinded-provider-logs branch January 27, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools A-trie Related to Merkle Patricia Trie implementation C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants