Skip to content

v0.8.5-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Sep 04:44

After two days of troubleshooting problems with the System.Text.Json source generator, one issue on dotnet/runtime, and several throwaway test projects later, I have finally found out that my issue with upgrading BungieSharper to .NET 6 all along was that the STJ source generator does not like dynamic. I wish I was joking. And to top it all off, running a benchmark with BenchmarkDotNet shows that this version in .NET 6 gives a massive... 8-16% deserialization performance boost when compared to .NET 5.
 

Changelog:

  • Support for .NET 6, including System.Text.Json source generation.
    • Benchmarks comparing .NET 5 and .NET 6 for this version are shown below.
    • This version is identical to v0.8.4 when targeting .NET 5.

 

Method Toolchain Mean Error StdDev Ratio Allocated
Defs net5.0 915,522.720 us 5,115.0067 us 4,784.5804 us 1.00 290,398,496 B
Defs net6.0 843,443.227 us 3,907.9892 us 3,655.5355 us 0.92 290,398,896 B
Manifest net5.0 58.693 us 0.2260 us 0.2114 us 1.00 432 B
Manifest net6.0 50.878 us 0.2347 us 0.2195 us 0.87 432 B
Search1 net5.0 2.093 us 0.0069 us 0.0058 us 1.00 432 B
Search1 net6.0 1.781 us 0.0057 us 0.0053 us 0.85 432 B
Search2 net5.0 1.305 us 0.0045 us 0.0042 us 1.00 432 B
Search2 net6.0 1.090 us 0.0018 us 0.0017 us 0.84 432 B