Cache Razor Tokens. #4985
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-razor-pages
Perf
Milestone
Today Razor has
ISymbol
s aka Tokens (should be renamed) and they are responsible for a large portion of allocations when compiling Razor pages (nearly 10%). We should cache these tokens to reduce their allocation numbers.I took a stab at doing this and ran into some risky issues which is the reason why I'm writing this issue now. See here for details on what the implications of doing this are.
The text was updated successfully, but these errors were encountered: