Skip to content

Improve PropertiesShouldNotBeWriteOnly performance #6736

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

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jul 2, 2023

This ends up allocating Location[] here:

and MatchesConfiguredVisibility might be generally slow. So we avoid calling it until we are about to issue a diagnostic.

In the trace I'm looking at currently, there is not so much allocations, but still an improvement.

image

@Youssef1313 Youssef1313 requested a review from a team as a code owner July 2, 2023 19:04
@codecov
Copy link

codecov bot commented Jul 2, 2023

Codecov Report

Merging #6736 (2439492) into main (9653f96) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6736   +/-   ##
=======================================
  Coverage   96.33%   96.33%           
=======================================
  Files        1393     1393           
  Lines      325082   325084    +2     
  Branches    10711    10712    +1     
=======================================
+ Hits       313160   313163    +3     
+ Misses       9217     9215    -2     
- Partials     2705     2706    +1     

@mavasani mavasani merged commit eafe5b4 into dotnet:main Jul 3, 2023
@Youssef1313 Youssef1313 deleted the patch-21 branch July 3, 2023 04:54
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