microsoft / microsoft/typespec

Consider using Utf8JsonReader for CollectionResult

Open
#9,940 0 comments 1 reaction 2 assignees Claimed by @JoshLove-msft View on GitHub
emitter:client:csharp
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

For the untyped CollectionResult that lets you iterate through ClientResult, we still deserialize into the internal envelope type to get the continuation token/next link. This is not as efficient as using Utf8JsonReader to just get the specific properties we are interested in. Things to keep in mind is that this would need to handle nested continuation tokens.

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.