This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(storage): optimize performance (#296)
* refactor(storage): insert_transactions() now takes block height * chore(storage): disable apm for better compilation errors * refactor(stroage): force index in insert_transactions fn signature * refactor(storage): storage api Add iter to adapter trait Remove index from key prefix * chore(storage): bump rocksdb to 0.14 * change(storage): use sync codec instead * feat(storage): add iter suppoert to rocksdb api * feat(storage): implement iter api for both memory and rocksdb adapter * fix(storage): test code * feat(storage): bench example * change(storage): lower NUMBER_OF_TXS_PER_ROUND to 1.5W * feat(storage): query transaction and receipt by hash * change(storage): speed up get_transactions * refactor: use new storage api * chore: restore apm * fix: test code * fix: clippy warnings * fix: clippy::suspicious-else-formatting on get_receipts * fix(ci): use rocksdb from crate * change(consensus): remove unused pull_txs from traits * perf(storage): speed up get_receipts * fix(storage): clippy warning on suspicious_else_formatting
- Loading branch information
Showing
35 changed files
with
1,375 additions
and
2,309 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,6 @@ addons: | |
apt: | ||
packages: | ||
- gcc | ||
- librocksdb5.8 | ||
- librocksdb-dev | ||
|
||
matrix: | ||
include: | ||
|
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
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.