check-user-call rebuilt the all-:any env once per parameter (O(params^2)) and re-inferred a callee body at every call site. Build the env once and memoize each probe by [key i argtype] (and the baseline by [:base key]), cleared per form in check-form. The global type-env is stable within a form's check and the probe's calls/escapes side effects aren't read there, so a skipped repeat is observably identical. (The inline-side re-walk the audit flagged is moot: hc-inline-ir is a no-op on Chez, so try-inline never reaches body-size/body-closed?.) |
||
|---|---|---|
| .. | ||
| chez | ||