dotnet / dotnet/aspnetcore

[Blazor] Investigate adjusting the default buffer size for component RenderTrees

Open
#65,190 2 comments 0 reactions 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

From the profile about 2% of the time is spent on GrowBuffer.

Image

Every time we do so it means that we rent a new array, we copy the elements and we return the existing one. Adjusting the default size should allow us to reduce the times we need to do this.

Contributor guide

Open the contributing guide

Research direction

Start by locating GrowBuffer and the default buffer size used for component RenderTrees. Profile or benchmark representative rendering workloads before and after the adjustment, and verify that fewer buffer growth operations occur without introducing regressions or excessive memory use.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.