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

Ameliorating runtime speed by adding in optimizations that make the code more concise #577

Closed
wants to merge 7 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 6, 2019

Fixes #.

#209

Description of the changes:

  • Refactoring code to eliminate unnecessary checks, calculations, loops, etc.

How changes were validated:

  • Manual Testing

pi1024e added 7 commits July 6, 2019 15:03
Changed the GetAppViewState function from an if else statement to a tertiary check to help with faster loading.
Refactoring to speed up loading time
The end result of the CloseCalendarFlyout() method always will be that the IsCalendarOpen in the for DateDiff_FromDate and DateDiff_ToDate will be false. For this, checking to see if they are true before making them false is redundant. They will be false when the method is called, no matter what.
This makes the code more clear and concise without having unnecessary boolean checks, for the branches can go straight into acting once and then returning m_token.
@ghost ghost closed this Jul 11, 2019
This pull request was closed.
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.

0 participants