-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Use ArgumentOutOfRangeException Throw methods in SendFileResponseExtensions..CheckRange #56420
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
Conversation
…nsions..CheckRange To allow inlining by the JIT.
Co-authored-by: Andrew Casey <amcasey@users.noreply.github.com>
FYI @captainsafia, I've enable auto-merge, since it seems straightforward. You have two hours to shout if you disagree. 😉 |
@captainsafia, @amcasey, looks like the build still has issues. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@paulomorgado When that happens, you should be able to unblock yourself by closing and re-opening the PR. (We're happy to help, but you don't have to wait for us.) Obviously, we're working on making it happen less often. |
But you don't need to do it after we manually restart the tests with |
Ack, apparently close and re-open disables auto-merge. TIL. Sorry about that. |
To allow inlining by the JIT.
Use ArgumentOutOfRangeException Throw methods in SendFileResponseExtensions..CheckRange to allow inlining by the JIT
Summary of the changes (Less than 80 chars)
Description
Methods that throw exceptions are not inlinable by the JIT.
This PR uses the recently introduced throw methods in the
ArgumentOutOfRangeException
to allow the logic to be fully inlined in non-error situations to increase performance of static file responses.