Improve routing performance with constant stackalloc when matching #32569
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-routing
Perf
task
Milestone
A possible place to improve matching performance is using a constant stackalloc:
aspnetcore/src/Http/Routing/src/Matching/DfaMatcher.cs
Lines 45 to 48 in 2783b1a
At the moment the maximum required size is calculated. Could use a constant size up to a limit (64?), and then switch to allocating array or array pool.
Verify any changes with performance tests.
The text was updated successfully, but these errors were encountered: