Commit 9ef9f4f
committed
perf(engine): process the amp chain per-block
Both engine paths looped chain.process(sample) one sample at a time, even
though AmplifierChain::process_block and the Stage::process_block trait method
already existed. Call process_block instead so per-stage work (bypass branch,
stage-list walk) happens once per block rather than once per sample, and so
stages with batched process_block overrides are actually exercised.
Measured on the analog chain: ~31% faster at 1x oversampling, converging to
parity as oversampling rises and real DSP work dominates loop overhead.1 parent a8cc930 commit 9ef9f4f
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 205 | + | |
209 | 206 | | |
210 | 207 | | |
211 | 208 | | |
| |||
215 | 212 | | |
216 | 213 | | |
217 | 214 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 215 | + | |
222 | 216 | | |
223 | 217 | | |
224 | 218 | | |
| |||
0 commit comments