redactive-performance
Installation
SKILL.md
Performance and strategy selection
Use this skill when
- You need to evaluate Redactive's performance for a specific workload.
- You are choosing between safe and generated compilation.
- You are deciding between clone and mutation mode for a hot path.
- You want to understand what the benchmark suite measures.
Execution plan architecture
createRedactor validates options once and selects the narrowest compatible plan:
- Exact static paths (no keys, detectors, wildcards, callbacks, or non-default policies): depth-specialized closure accessors for mutation and a compact path tree for selective clone.
- Generated compilation (
codegen: truewith compatible config): one strict whole-plan mutation function vianew Function. - Single static wildcard (
*or[*]only): bounded wildcard walker with selective clone state. - Root strings: bypass structured graph state; use precompiled regex, detector prefilters, and linear string reconstruction.
- Complete iterative engine: recursive wildcards, overlapping wildcards, key rules, detectors, callbacks, removals, explicit limits, and non-default graph policies.