Skip to content
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

simulation: Use a simulation.Account struct #2384

Closed
wants to merge 2 commits into from

Conversation

ValarDragon
Copy link
Contributor

This removes privkeys and addresses from function signatures.
This comes with a 11% performance improvement to the simulator,
as we no longer keep recomputing the pubkeys.
Once we move the transient store clearing to endblock, we can
further raise the size of make test_sim_gaia_fast

concretely, make test_sim_gaia_fast went from 16.8 seconds to 13.5 seconds on my system.

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work. - Randomized Simulation wishlist #1924
  • Updated relevant documentation (docs/) - no simulator docs yet, I'll probably make some soon. Godocs were updated
  • Added entries in PENDING.md with issue #
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

This removes privkeys and addresses from function signatures.
This comes with a 11% performance improvement to the simulator,
as we no longer keep recomputing the pubkeys.
Once we move the transient store clearing to endblock, we can
further raise the size of make test_sim_gaia_fast

concretely, `make test_sim_gaia_fast` went from 16.8 seconds to 13.5 seconds on my system.
@ValarDragon ValarDragon force-pushed the dev/simulation_remove_pubkey_ops branch from 16325d8 to bb624b3 Compare September 23, 2018 03:33
@ValarDragon ValarDragon requested review from alexanderbez and removed request for ebuchman September 23, 2018 03:33
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK -- thanks @ValarDragon

@codecov
Copy link

codecov bot commented Sep 25, 2018

Codecov Report

Merging #2384 into develop will increase coverage by 0.95%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2384      +/-   ##
===========================================
+ Coverage    63.54%   64.49%   +0.95%     
===========================================
  Files          120      138      +18     
  Lines         7236     8619    +1383     
===========================================
+ Hits          4598     5559     +961     
- Misses        2326     2685     +359     
- Partials       312      375      +63

@jaekwon
Copy link
Contributor

jaekwon commented Sep 25, 2018

Merged bb624b3

@jaekwon jaekwon closed this Sep 25, 2018
@cwgoes cwgoes deleted the dev/simulation_remove_pubkey_ops branch September 25, 2018 18:48
chillyvee pushed a commit to chillyvee/cosmos-sdk that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants