forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
congestion: print queue size in bytes and gas (near#10752)
So far, we only printed the queue length, as in "number of elements". But we are much more interested in the size in bytes, as this is the real constraint. Also add the same for attached gas, as this can be interesting, too. The way this is computed, it's rather inefficient. We might want to compute the sums more efficiently. But running `time cargo run --release -- --write-stats` still finishes in `real 0m18.183s` on my machine, so I guess it's still tolerable, for now...
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
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