-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: getburninfo performance improvements (#1788)
* Reverts of Require in Sub/Add Balances * Revert ifs on Add/Sub * Fix burninfo concurrency and switch to worker number agnostic queuing * Remove getburninfo2 used for testing * Optimize vector reservation * Readd nodiscard * Readd const * Realign vector alloc * Add fixed buffer to reduce allocations * Switch to lockfree sync * Use raw atomic ops * Remove redundant flush * Introducing last result cache. Switching paralelization to mutex instead of lock free atomics. * Fix condition * Final maintainability touches * cacheOrDefaultResult to initialResult --------- Co-authored-by: Mihailo Milenkovic <mihailo.milenkovic84@gmail.com> Co-authored-by: jouzo <jdesclercs@gmail.com>
- Loading branch information
1 parent
a97fc6c
commit 0f29d5d
Showing
6 changed files
with
195 additions
and
111 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
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
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
Oops, something went wrong.