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

Local refactorings in AddNoiseEffect #623

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Local refactorings in AddNoiseEffect #623

merged 2 commits into from
Dec 20, 2023

Conversation

Lehonti
Copy link
Contributor

@Lehonti Lehonti commented Dec 20, 2023

  • Created AddNoiseSettings, for consistency with other effects, but also to get the reference to Data.Seed out of the foreach loop. From previous (subjective) experience, casting the EffectData object every time slows down the rendering noticeably.
  • Removed a nesting level by getting rid of an else block. I think it's still clear enough
  • Reduced variable reassignment inside for loop

@cameronwhite cameronwhite merged commit ee146dc into PintaProject:master Dec 20, 2023
5 checks passed
@Lehonti Lehonti deleted the improvement1 branch December 20, 2023 09:00
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