aspnet / JsonPatch

[Archived] JSON PATCH library. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
103 stars 48 forks source link

Reduce allocations for a typical patch scenario #70

Closed kichalla closed 6 years ago

kichalla commented 7 years ago

For the following typical replace operation

[
    { "op": "replace", "path": "/Name", "value": "Roger Federer" }
]

Before: image

After: After making the following couple of changes, I see a 30% reduction in memory usage

image

aspnet-hello commented 6 years ago

This issue was moved to aspnet/Home#2434