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

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
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

No branches or pull requests

1 participant