-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: faster
count_leaves
and prove_membership_async
for MMRA
With this commit the DB is only accessed once when counting leaves, whereas earlier, a helper function that read multiple digests from the MMRA was used. Also changes index arithmetic for getting the relevant node indices for an MMR authentication path slightly, and then reads all the digests in one go instead of in a loop. Good speedup seen from this commit: - batch-mutation benchmark is 10 % faster, regular mutation is 20 % faster.
- Loading branch information
1 parent
fa6de86
commit 4d568b2
Showing
1 changed file
with
20 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters