dotnet / dotnet/aspnetcore

Resolving layout attribute on Razor component pages is the hot path in Fortunes benchmark using Blazor SSR

Open
#48,434 3 comments 0 reactions 0 assignees View on GitHub
area-blazor Perf Pillar: Technical Debt Priority:2
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

Seems we're looking up the `LayoutAttribute` on Razor Component Pages on every render. This ends up being the hot path in the Blazor SSR Fortunes benchmark. Likely a good candidate for caching.

![image](https://github.com/dotnet/aspnetcore/assets/249088/6a8fec23-dec8-471d-b170-ba697a9ca504)

![image](https://github.com/dotnet/aspnetcore/assets/249088/3104cbd9-a0db-46c0-bb2a-900c3ab1baf4)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.