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

PRNG: Remove 'TODO: benchmark' comment #10822

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

larry-the-table-guy
Copy link
Contributor

The alternative big-endian read impl is indeed slower. (if you're curious, in a loop it was about 4x slower).

Also, PRNG code currently accounts for very, very little of the execution time for a battle.

The alternative big-endian read impl is indeed slower.
@DieterReinert
Copy link
Contributor

I actually made a pr to speed up the method used in this pr. Check #10818

@larry-the-table-guy
Copy link
Contributor Author

With that change, the commented-out code is still slightly slower.

The 4x number was just for comparing those single lines; the big-endian read is a small fraction of the next function, and the next function is negligible in the context of a battle.

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.

2 participants