MCPcopy Create free account
hub / github.com/tailscale/hujson / Patch

Method Patch

patch.go:46–68  ·  view source on GitHub ↗

TODO(dsnet): Insert/remove operations on an array has O(n) complexity where n is the length of the array. We could improve this with more clever data structure that has efficient insertion, deletion, and indexing. One possibility is an "order statistic tree", which provide O(log n) behavior for the

(patch []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestPatchFunction · 0.80
FuzzPatchFunction · 0.80

Calls 5

patchAddMethod · 0.95
patchRemoveOrReplaceMethod · 0.95
patchMoveOrCopyMethod · 0.95
patchTestMethod · 0.95
parsePatchFunction · 0.85

Tested by 2

TestPatchFunction · 0.64
FuzzPatchFunction · 0.64