Skip to content

Optimize NSSS and CLI TTFX - #311

Merged
thorek1 merged 2 commits into
mainfrom
codex/optimize-nsss-ttfx
Jul 26, 2026
Merged

Optimize NSSS and CLI TTFX#311
thorek1 merged 2 commits into
mainfrom
codex/optimize-nsss-ttfx

Conversation

@thorek1

@thorek1 thorek1 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

What changed

  • Added automatic NSSS symbolic-mode selection for large redundant-variable workloads.
  • Added reproducible command-line benchmarks for BasicRBC, SW07, FRBUS, and package-load timing.
  • Added the generic first-order NSSS/IRF/moments precompile workload and a concrete IRF state-store type improvement.
  • Documented timing methodology and measured results.

Why

SW07 and FRBUS spent a large share of first-call time in symbolic redundant-variable elimination during NSSS setup. The automatic mode preserves the symbolic path for small models and skips expensive symbolic solves for larger candidate workloads.

Validation

  • SW07 automatic workflow: 46.88 s external wall time versus 53.39 s with explicit :single_equation in the same cached environment.
  • BasicRBC benchmark passed with unchanged output checksums.
  • FRBUS automatic workflow completed with the previously observed IRF checksum.
  • Julia parsing and git diff --check passed.

SW07's documented undefined correlations are accepted as NaN; infinities and other non-finite outputs are rejected.

@thorek1
thorek1 marked this pull request as ready for review July 26, 2026 18:01
@thorek1
thorek1 merged commit 7ccd0e3 into main Jul 26, 2026
0 of 39 checks passed
@thorek1
thorek1 deleted the codex/optimize-nsss-ttfx branch July 26, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant