dotnet / dotnet/aspnetcore

Rendering razor pages / mvc views directly to output stream without buffering

Open
#62,181 2 comments 3 reactions 0 assignees View on GitHub
area-mvc feature-razor-pages
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Hi,

I've been recently exploring razor pages (not blazor) and I'm wondering is this possible to render a page without buffering the whole page in memory? From my experiments it looks like the page is always first rendered into memory and then dumped into output stream once fully rendered.

Could you please confirm whether my conclusions are correct? Also is there any possibility to tune the rendering engine to achieve rendering directly to the output/response stream without additional memory allocations?

Thank you!

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.