Reuse ordinary closure entry for wind callbacks (384)
Interpreted dynamic-wind gains 1.073x with GC and 1.064x with arenas. Both full-suite aggregates remain effectively flat. This targeted improvement does not establish the overall speed goal.
Four dynamic-wind callback sites reuse the existing guarded cached closure entry, with a separate specialization for each callback site. Active native scopes go directly to full application. Bounded owners, controlled evaluation, active native scopes, special procedures, owner/arity failures, exhausted budgets and frame growth retain full application. The activation API continues to own allocation, reuse and lifetimes. No frame identities, wind-chain updates, callback operands, private bridge slots or snapshot ownership change. The new helper has no allocation or clone calls in any of the four actual production C outputs; generated C and callback disassembly are preserved.
Six shared regressions and two optional-native regressions pass on both the unchanged 382 baseline and the candidate under ASan/UBSan and Boehm. This is a performance optimization; no functional baseline failure is claimed. Cases cover exact step/frame limits against bounded full application, results and errors, multishot captures inside each callback, captured parents and published locations, primitive/rest/host/foreign calls, parameter extents with host reentry, Vile syntax, native priority and replay after native-scope cleanup. The broader gate passes 350 ordinary and 226 native cases per mode, including winding, continuation, parameter, control, ownership and numeric tests, plus two CLI cases and one default-build budget check.
Both engines and collectors are compared separately with retained 382 and Guile 3.0.10 on the same idle Intel Mac mini. Each full suite includes 24 runtime and 12 mock-WM workloads with unchanged fixtures, four-input oracles, batches, five warmups and frozen guild-O2/default-JIT Guile wrappers. Ten fresh processes per configuration give nine retained samples after excluding sample zero. Both 1,800-row matrices pass every result check; interpreted rows have all native counters zero. Optional-native preparation records 144 cold observations in a separate job, with zero warmup/measured compilation thereafter. Native scaling has 46 groups and ordinary scaling 18; all check 4 versus 400 calls, three repeats and at least 20x elapsed growth.
Builds, focused tests, cache preparation and timings run serially from hash-verified snapshots, with at most one validation job and idle checks before measurement. Prepared medians exclude setup/first use; workload loading/macro work remains included. All workloads, losses, raw process/first-call data and native caches remain available. R7RS first-use benchmarks remain separate.
Ratios above one favor the candidate or Vile, respectively. Aggregates are equal-weight geometric means. The full 1.5x goal remains unproven; final 31-sample/full-objective verification is outstanding.
| Engine | Suite | GC gain vs382 | Arena gain vs382 | Guile/Vile GC | Guile/Vile arena |
|---|---|---|---|---|---|
| interpreter | wm | 1.005x | 0.999x | 0.262x | 0.259x |
| interpreter | runtime | 1.002x | 1.000x | 0.139x | 0.136x |
| interpreter | all36 | 1.003x | 1.000x | 0.172x | 0.168x |
| native | wm | 0.999x | 0.997x | 0.633x | 0.630x |
| native | runtime | 1.006x | 1.002x | 1.192x | 1.220x |
| native | all36 | 1.004x | 1.000x | 0.966x | 0.979x |
interpreter regressions above 5%: none. All losses remain included.
interpreter / wm
| Workload | 382 GC ms | 384 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| wm-callback-chain | 4.642213 | 4.652116 | 0.637250 | 0.998x | 1.002x |
| wm-event-dispatch | 2.825440 | 2.803929 | 0.220250 | 1.008x | 0.996x |
| wm-focus-cycle | 4.198301 | 4.144017 | 0.377250 | 1.013x | 1.002x |
| wm-tiling-layout | 1.776189 | 1.763957 | 0.109500 | 1.007x | 0.991x |
| wm-workspace-move | 1.247181 | 1.243025 | 0.173750 | 1.003x | 1.007x |
| wm-keybindings | 1.140048 | 1.135554 | 0.280500 | 1.004x | 0.995x |
| wm-hooks | 2.813053 | 2.808727 | 0.356250 | 1.002x | 1.005x |
| wm-lifecycle | 0.995326 | 0.989653 | 0.125000 | 1.006x | 1.001x |
| wm-macro-config | 4.446841 | 4.447052 | 5.282750 | 1.000x | 0.968x |
| wm-config-load-tree | 4.943693 | 4.948264 | 8.960750 | 0.999x | 1.009x |
| wm-reload-live | 7.224724 | 7.093114 | 8.153750 | 1.019x | 1.003x |
| wm-session-replay | 6.456560 | 6.472376 | 8.059000 | 0.998x | 1.006x |
interpreter / runtime
| Workload | 382 GC ms | 384 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| tail-sum-10k | 0.665688 | 0.666634 | 0.033690 | 0.999x | 0.993x |
| fib-20 | 4.781015 | 4.828531 | 0.310690 | 0.990x | 1.001x |
| closure-5k | 0.527835 | 0.530729 | 0.015540 | 0.995x | 0.987x |
| list-3k | 0.891242 | 0.894029 | 0.059650 | 0.997x | 0.996x |
| flonum-sum-2k | 0.476935 | 0.476643 | 0.096167 | 1.001x | 1.000x |
| bignum-fib-200 | 0.033239 | 0.033197 | 0.005500 | 1.001x | 0.981x |
| rational-harmonic-80 | 0.094859 | 0.095050 | 0.050625 | 0.998x | 0.986x |
| integer-divmod-5k | 0.810616 | 0.805713 | 0.168167 | 1.006x | 1.013x |
| list-map-1k | 0.117457 | 0.116751 | 0.048583 | 1.006x | 0.993x |
| list-reverse-2k | 0.459519 | 0.469451 | 0.061000 | 0.979x | 1.001x |
| vector-update-2k | 0.376753 | 0.378341 | 0.016167 | 0.996x | 1.012x |
| bytevector-fill-4k | 0.744297 | 0.751570 | 0.086167 | 0.990x | 0.985x |
| hashtable-count-1k | 0.431652 | 0.428499 | 5.936583 | 1.007x | 1.000x |
| string-build-1k | 0.041958 | 0.040925 | 0.043000 | 1.025x | 1.002x |
| string-scan-4k | 0.642047 | 0.640270 | 0.043750 | 1.003x | 0.989x |
| unicode-scan-1k | 0.173436 | 0.172810 | 0.011750 | 1.004x | 0.999x |
| datum-read-write-200 | 1.213079 | 1.201879 | 2.257625 | 1.009x | 1.004x |
| closure-mutate-2k | 0.288533 | 0.289580 | 0.008417 | 0.996x | 0.994x |
| higher-order-2k | 0.372080 | 0.377595 | 0.006417 | 0.985x | 1.006x |
| callcc-escape-1k | 0.068749 | 0.069240 | 0.006667 | 0.993x | 0.987x |
| values-consumer-1k | 0.601825 | 0.603289 | 0.004417 | 0.998x | 1.008x |
| dynamic-wind-200 | 0.140387 | 0.130842 | 0.012583 | 1.073x | 1.064x |
| goops-dispatch-1k | 0.748949 | 0.746768 | 0.110250 | 1.003x | 1.002x |
| goops-allocate-200 | 0.081350 | 0.081401 | 0.054500 | 0.999x | 1.002x |
native regressions above 5%: none. All losses remain included.
native / wm
| Workload | 382 GC ms | 384 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| wm-callback-chain | 0.485165 | 0.487008 | 0.639500 | 0.996x | 1.010x |
| wm-event-dispatch | 0.837210 | 0.838369 | 0.215250 | 0.999x | 1.001x |
| wm-focus-cycle | 0.485257 | 0.487288 | 0.381250 | 0.996x | 1.002x |
| wm-tiling-layout | 0.264753 | 0.269532 | 0.110250 | 0.982x | 0.992x |
| wm-workspace-move | 0.192471 | 0.193451 | 0.173750 | 0.995x | 0.998x |
| wm-keybindings | 0.967736 | 0.968738 | 0.284250 | 0.999x | 0.984x |
| wm-hooks | 2.313597 | 2.296464 | 0.358250 | 1.007x | 0.997x |
| wm-lifecycle | 0.876409 | 0.879414 | 0.129750 | 0.997x | 1.005x |
| wm-macro-config | 4.393167 | 4.405267 | 5.231750 | 0.997x | 1.000x |
| wm-config-load-tree | 4.732696 | 4.661233 | 8.997500 | 1.015x | 0.968x |
| wm-reload-live | 4.846821 | 4.838315 | 8.196250 | 1.002x | 1.006x |
| wm-session-replay | 4.896989 | 4.905901 | 8.055250 | 0.998x | 0.998x |
native / runtime
| Workload | 382 GC ms | 384 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| tail-sum-10k | 0.005605 | 0.005606 | 0.033630 | 1.000x | 1.000x |
| fib-20 | 0.147615 | 0.147134 | 0.310710 | 1.003x | 1.004x |
| closure-5k | 0.002757 | 0.002389 | 0.015580 | 1.154x | 1.011x |
| list-3k | 0.007215 | 0.007222 | 0.060110 | 0.999x | 1.003x |
| flonum-sum-2k | 0.002378 | 0.002367 | 0.096000 | 1.005x | 1.001x |
| bignum-fib-200 | 0.042828 | 0.043323 | 0.005583 | 0.989x | 1.019x |
| rational-harmonic-80 | 0.103355 | 0.104323 | 0.049375 | 0.991x | 0.994x |
| integer-divmod-5k | 0.007913 | 0.007911 | 0.168167 | 1.000x | 1.000x |
| list-map-1k | 0.134055 | 0.129829 | 0.048583 | 1.033x | 1.022x |
| list-reverse-2k | 0.066634 | 0.067104 | 0.061167 | 0.993x | 1.009x |
| vector-update-2k | 0.062907 | 0.062967 | 0.016250 | 0.999x | 0.975x |
| bytevector-fill-4k | 0.077752 | 0.079150 | 0.086167 | 0.982x | 0.995x |
| hashtable-count-1k | 0.458776 | 0.459765 | 5.934167 | 0.998x | 1.009x |
| string-build-1k | 0.045219 | 0.044554 | 0.043000 | 1.015x | 0.996x |
| string-scan-4k | 0.093626 | 0.091945 | 0.043750 | 1.018x | 0.975x |
| unicode-scan-1k | 0.035605 | 0.035644 | 0.011750 | 0.999x | 0.992x |
| datum-read-write-200 | 1.563460 | 1.579101 | 2.269125 | 0.990x | 1.007x |
| closure-mutate-2k | 0.002895 | 0.002893 | 0.008417 | 1.001x | 1.002x |
| higher-order-2k | 0.004084 | 0.004098 | 0.006417 | 0.997x | 1.000x |
| callcc-escape-1k | 0.092163 | 0.094163 | 0.006750 | 0.979x | 1.025x |
| values-consumer-1k | 0.001560 | 0.001558 | 0.004417 | 1.002x | 1.002x |
| dynamic-wind-200 | 0.150690 | 0.148347 | 0.012667 | 1.016x | 1.010x |
| goops-dispatch-1k | 0.789103 | 0.783614 | 0.109000 | 1.007x | 1.007x |
| goops-allocate-200 | 0.085298 | 0.086285 | 0.054750 | 0.989x | 1.001x |
Build: vile-resume.swpsqhno. Verification: vile-resume.8rd2za0h. Ordinary measurement: vile-resume.wv2q0t_m. Native measurement: vile-resume.wv2q0t_m. Recovery: validation/wind384/.