Use System.Text.Json#53
Use System.Text.Json#53JeremyTCD merged 16 commits intoJeringTech:masterfrom DaniilSokolyuk:reduceallocations
Conversation
|
Hey looks good! I need access to the pull request branch, thanks. |
|
@JeremyTCD Done |
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
==========================================
- Coverage 97.84% 97.77% -0.08%
==========================================
Files 17 17
Lines 511 494 -17
==========================================
- Hits 500 483 -17
Misses 11 11
Continue to review full report at Codecov.
|
- Added ConfigureAwait(false). - Minor formatting, Stream is disposable, to be safe and consistent wrap in using block.
- InvocationError can't be immutable since System.Text.Json doesn't support private setters yet, looks like support will be added soon - https://github.com/dotnet/corefx/issues/38163#issuecomment-553152589. Review when System.Text.Json 5.0.0 is released. - Not a blocking issue since this library doesn't actually use generated InvocationError instances, simply passes them to user.
- moduleSourceType can only be ModuleSourceType.Stream, ModuleSourceType.String or ModuleSourceType.File.
JeremyTCD
left a comment
There was a problem hiding this comment.
Almost ready to merge, just unsure about a couple of things.
|
@JeremyTCD |
…e.js stdout/stderr flushing issue
- Latency benchmarks use minimal JSON, so they do not reflect the improvement in JSON serialization/deserialization performance. Refer to benchmarks in this commit's PR for a clearer picture.
|
Good point! Please add your details to the ReadMe under "Contributors" and your node project under "Projects Using this Library". |
|
@JeremyTCD Done |
- Benchmark couldn't find javascript module after cleaning solution.
|
🚀 Releasing v5.0.0, bumped major version because of changes to |
Switched from Newtonsoft.Json to System.Text.Json.
Before
After
Here one more benchmark
DaniilSokolyuk/NodeReact.NET#3