Repository navigation
Skip a duplicate skill calculation in Full DPS Power Reports - #10631
Open
AdamZ-8113 wants to merge 1 commit into
Open
AdamZ-8113 wants to merge 1 commit into
AdamZ-8113 wants to merge 1 commit into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the problem being solved:
A Full DPS Power Report can calculate the selected skill twice for every passive it checks: once on its own, then again when adding up Full DPS. When the selected skill is the first one counted in Full DPS and it’s safe to skip the separate calculation, this PR lets the Full DPS loop calculate it once.
Steps taken to verify a working solution:
I tested 17 builds for correctness and timed 7 of them. I first compared clean
devwith and without this PR on 4 builds that had shown a benefit in earlier tests. I then timed all 7 builds with the other open Power Report changes applied to see how much time this PR still saved.The relevant open PRs were:
This PR reduced the average time for the first Full DPS report by 29.4% on clean
devacross 4 builds, and by 10.5% across all 7 builds with the other PRs applied.devdevwith other PRs applieddevwith other PRs appliedTiming started when the first report was requested after loading the build. Each build and depth (5 and All) got equal weight. The report rows and values matched, and all 931 tests passed on clean
devwith this PR applied.Link to a build that showcases this PR:
Vaal Arc Elementalist saved 23.27 seconds on its first depth-All Full DPS report on clean
dev, going from 69.65 s to 46.38 s.The other three builds timed on clean
devwere Eviscerate, Divine Blast, and Winter Orb. The seven-build comparison also included Vaal Reap, Kitava’s Thirst Crackling Lance, and Viper Strike of the Mamba.