NewtonsoftJsonOutputFormatter buffering improvements
Open
affected-medium
area-mvc
enhancement
feature-mvc-formatting
Perf
severity-minor
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
Mvc's Newtonsoft.Json based serializer buffers contents to disk to avoid sync writes to the response stream. This was introduced in 3.0. We've received a few reports of people running in to issues with this. This issue tracks improvements to the buffering scheme:
* [x] Allow configuring the size of the in-memory buffer
* [x] Add benchmarks - https://github.com/aspnet/Benchmarks/issues/1498
* [ ] Optimize `PagedByteBuffer` so we page larger buffers (it's currently 1k)
* [ ] Optimize `PagedByteBuffer` so writing to disk is more efficient.
Contributor guide
Assessment
This issue has not been assessed yet.