-
Notifications
You must be signed in to change notification settings - Fork 156
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
Ts new calc pool distr #3068
Ts new calc pool distr #3068
Conversation
ee9566d
to
2fc91e5
Compare
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
31629c2
to
1609d68
Compare
d5a6660
to
8021de1
Compare
8021de1
to
a84b583
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wonderful @TimSheard , thank you for adding in all those very helpful comments!
Do you mind adding notes to #3035 with the results of the benchmarks? it will be really great to have a bit of a record of the results (and the community might be interested to learn as well).
So I added some notes to #3035. Did you make some changes. I note that you did a force-push . Do I need to do anything else? (like rebase on master?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but few things need fixing though.
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/IncrementalStake.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/bench/Bench/Cardano/Ledger/StakeDistr.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/bench/Bench/Cardano/Ledger/StakeDistr.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/bench/Bench/Cardano/Ledger/StakeDistr.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/bench/Bench/Cardano/Ledger/StakeDistr.hs
Outdated
Show resolved
Hide resolved
5a8657f
to
0a682b9
Compare
e8d6b0f
to
5251425
Compare
5251425
to
ce4375c
Compare
…in terms of time on an actual recent NewEpochState. Add the function runRule to support benchmarking Rule computations in the STS framework. Add many benchmarks, and using that information wrote a few new functions that are more efficient. Added tests that these functions compute the same results. Changed the Arbitrary instance for Stake to enforce Ada is preserved implications, I.e. the sum of Ada in Stake cannot exceed (maxBound :: Word64). We now use newer version of 'cardano-strict-containers'
ce4375c
to
186da87
Compare
Add some benchmarks to speed up the tickf rule