dotnet/aspnetcore
Auf GitHub ansehenWrite more content directly to StreamWriter in W3CLogger
Open
#33.946 geöffnet am 29. Juni 2021
Perfarea-networkinghelp wanted
Repository-Metriken
- Stars
- (37.933 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 16T 9h) (258 gemergte PRs in 30 T)
Beschreibung
See https://github.com/dotnet/aspnetcore/pull/33251/#discussion_r655734742, https://github.com/dotnet/aspnetcore/pull/33251/#discussion_r656445769.
Since we know the only consumer of this data is StreamWriter, can you delay the Format, enqueue the elements array, and format when writing to the stream? This intermediate string is likely large and useless.
More content that should be written directly to the streamWriter.