Summary
Implement the apply_filters_batch form for hot filters. Dispatcher offers a batched form that crosses the WASM boundary once with all values. SDKs transparently use the batch form for handlers that opt in. This addresses §5.7s "the danger isnt single-call cost, its the N" — WP-style page renders firing thousands of filter calls.
Design reference
- docs/02-plugin-system.md §5.7
Acceptance criteria
Dependencies
#73 (hook bus), #95 (hook handler), SDK issues
Complexity
M
Summary
Implement the
apply_filters_batchform for hot filters. Dispatcher offers a batched form that crosses the WASM boundary once with all values. SDKs transparently use the batch form for handlers that opt in. This addresses §5.7s "the danger isnt single-call cost, its the N" — WP-style page renders firing thousands of filter calls.Design reference
Acceptance criteria
apply_filters_batch(name, []value)becomes aHookCallvariantBatchFilterwithvalues: []anyhook.AddFilterBatch(name, priority, fn)wherefnreceives[]Inputand returns[]Outputthe_titleover a list of 20 posts)Dependencies
#73 (hook bus), #95 (hook handler), SDK issues
Complexity
M