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

Execute NameAndParametersValid only when needed. #7353

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

mandel-macaque
Copy link
Member

The NameAndParametersValid is executed for ALL methods in a class, independently of the methods being static and returning a boolean.

If you look carefully at the code, we have a || after a && therefore the NamedAndParametersValid is executed ALWAYS. This means that we are performing the check for EVEVERY method, rather than on those methods that are static and return a bool.

The NameAndParametersValid is executed for ALL methods in a class,
independenlty of the methods being static and returning a boolean.

If you look carefully at the code, we have a || after a && therefore
the NamedAndParametersValid is executed ALWAYS. This means that we are
performing the check for EVEVERY method, rather than on those methods
that are static and return a bool.
@mandel-macaque mandel-macaque requested a review from a team as a code owner July 15, 2024 21:02
Copy link
Member

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

Thanks!

@buyaa-n buyaa-n enabled auto-merge (squash) July 15, 2024 21:19
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (43709af) to head (424845a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7353   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files        1443     1443           
  Lines      345799   345799           
  Branches    11374    11374           
=======================================
+ Hits       333665   333670    +5     
+ Misses       9251     9245    -6     
- Partials     2883     2884    +1     

@buyaa-n buyaa-n merged commit 81d9b5d into dotnet:main Jul 15, 2024
14 checks passed
@mandel-macaque mandel-macaque deleted the performance-issues branch July 15, 2024 21:32
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