dotnet / dotnet/aspnetcore

[Blazor] Investigate pooling strategy around TextChunkPage.

Open
#65,192 1 comment 0 reactions 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

We have a comment on code that explains that we don't benefit from pooling with an ArrayPool (hence why TextChunkPage allocates) but we might consider pooling collections of TextChunkPages that can be reused across requests.

The philosophy is similar, instead of renting/returning individually, we rent in bulk. We can then decide what to do when we are done rendering.

We should also consider adjusting the default page allocation size to 64KB, based on data from https://almanac.httparchive.org/en/2025/page-weight#html-bytes the median is 33KB

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.