You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pointer encode and decode are relatively expensive operations called on a very hot code path. By only running the regex replaces when required we can see ~2x perf gains for large diffs.
Current state of the world:
With token escaping completely disabled:
This is close to being on par with fast-json-patch.
Unfortunately, an indexOf check before running the regex replaces does not help matters. It may be possible to instead track characters as pointers are constructed to decide if encode / decode should be run. I haven't had time to experiment with this, but plan to in the near future.
The text was updated successfully, but these errors were encountered:
amiller-gh
changed the title
Performance:
Performance: Pointer Encode / Decode
Aug 7, 2020
Pointer encode and decode are relatively expensive operations called on a very hot code path. By only running the regex replaces when required we can see ~2x perf gains for large diffs.
Current state of the world:
With token escaping completely disabled:
This is close to being on par with
fast-json-patch
.Unfortunately, an
indexOf
check before running the regex replaces does not help matters. It may be possible to instead track characters as pointers are constructed to decide if encode / decode should be run. I haven't had time to experiment with this, but plan to in the near future.The text was updated successfully, but these errors were encountered: