[Blazor] Investigate pooling strategy around TextChunkPage.
Open
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
Assessment
This issue has not been assessed yet.