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

Minor perf improvements in BasePathStrategy and RemoteAuthenticationCallbackStrategy #654

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

rikbosch
Copy link
Contributor

This PR will reduce (some) allocations in RemoteAuthenticationCallbackStrategy and BasePathStrategy.

RemoteAuthenticationCallbackStrategy

Instead of ToLowerInvariant() == comparison, use string.Equals(a,b,StringComparison.OrdinalIgnoreCase)

BasePathStrategy

Stop splitting the path segments after 2 entries have been found, this optimizes for paths with lots of segments.

@stale
Copy link

stale bot commented May 21, 2023

This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 21, 2023
@stale stale bot closed this Jun 18, 2023
@stale stale bot removed the stale label Jul 1, 2023
@AndrewTriesToCode AndrewTriesToCode merged commit ac1c58a into Finbuckle:main Jul 1, 2023
github-actions bot pushed a commit that referenced this pull request Jul 1, 2023
## [6.11.0](v6.10.0...v6.11.0) (2023-07-01)

### Features

* add HasResolvedTenant to IMultiTenantContext ([#650](#650)) ([375add5](375add5))
* perf improvements in BasePathStrategy and  RemoteAuthenticationCallbackStrategy ([#654](#654)) ([ac1c58a](ac1c58a))

### Bug Fixes

* internal refactoring and improved XML comments for intellisense ([c42c53d](c42c53d))
* xml docs corrections ([#639](#639)) ([265d26d](265d26d))
@AndrewTriesToCode
Copy link
Contributor

🎉 This PR is included in version 6.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants