We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b79e2 commit 4d7aac4Copy full SHA for 4d7aac4
1 file changed
src/document.rs
@@ -181,7 +181,12 @@ pub(crate) fn apply_patches_impl(
181
batch.clear();
182
}
183
184
- // Apply the complex replace directly
+ // Apply the complex replace directly.
185
+ // NOTE: This re-parses the document for each complex replace (O(N) parses).
186
+ // This is consistent with yamlpatch::apply_yaml_patches, which also
187
+ // re-parses per patch via apply_single_patch. A bottom-up single-pass
188
+ // approach could avoid this, but isn't warranted until profiling shows
189
+ // it matters.
190
let route = patch.route.to_yamlpath_route();
191
let value = match &patch.operation.inner {
192
yamlpatch::Op::Replace(v) => v,
0 commit comments