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

Remove unnecessary[MethodImpl(MethodImplOptions.NoInlining)] #931

Open
paulirwin opened this issue Mar 13, 2024 · 0 comments
Open

Remove unnecessary[MethodImpl(MethodImplOptions.NoInlining)] #931

paulirwin opened this issue Mar 13, 2024 · 0 comments
Labels
is:task A chore to be done pri:low up-for-grabs This issue is open to be worked on by anyone

Comments

@paulirwin
Copy link
Contributor

Note that we have added [MethodImpl(MethodImplOptions.NoInlining)] more liberally than what was actually required. For example, for this case we have added it to every method named Flush in the whole solution. There may be a slight performance improvement if we allowed inlining everywhere except for the specific methods that are actually being scanned for in the stack traces of all tests.

This is low priority, but perhaps we should add an issue to remove unnecessary [MethodImpl(MethodImplOptions.NoInlining)] attributes. An analysis of which specific methods are being scanned for in the stack trace would be required to work this out, though. Or they could be removed one at a time and rolled back if removing the attribute causes a failure in any one of multiple test runs.

Originally posted by @NightOwl888 in #926 (comment)

@paulirwin paulirwin mentioned this issue Mar 13, 2024
4 tasks
@paulirwin paulirwin added this to the 4.8.0 milestone Oct 28, 2024
@paulirwin paulirwin modified the milestones: 4.8.0, 4.8.0-beta00018 Nov 11, 2024
@paulirwin paulirwin added pri:low is:task A chore to be done up-for-grabs This issue is open to be worked on by anyone labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:task A chore to be done pri:low up-for-grabs This issue is open to be worked on by anyone
Projects
None yet
Development

No branches or pull requests

1 participant