-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce Helix JSON response deserialization times by leveraging STJ so…
…urcegen Request body serialization improvements are blocked by dotnet/runtime#60378 and dotnet/runtime#51544
- Loading branch information
Showing
3 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Text.Json.Serialization; | ||
using CatCore.Models.Twitch.Helix.Responses; | ||
using CatCore.Models.Twitch.Helix.Responses.Bits.Cheermotes; | ||
using CatCore.Models.Twitch.Helix.Responses.Polls; | ||
using CatCore.Models.Twitch.Helix.Responses.Predictions; | ||
|
||
namespace CatCore.Helpers.JSON | ||
{ | ||
[JsonSerializable(typeof(ResponseBase<UserData>))] | ||
[JsonSerializable(typeof(ResponseBase<CreateStreamMarkerData>))] | ||
[JsonSerializable(typeof(ResponseBaseWithPagination<ChannelData>))] | ||
[JsonSerializable(typeof(ResponseBase<PollData>))] | ||
[JsonSerializable(typeof(ResponseBaseWithPagination<PollData>))] | ||
[JsonSerializable(typeof(ResponseBase<PredictionData>))] | ||
[JsonSerializable(typeof(ResponseBaseWithPagination<PredictionData>))] | ||
[JsonSerializable(typeof(ResponseBase<CheermoteGroupData>))] | ||
internal partial class TwitchHelixSerializerContext : JsonSerializerContext | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters