Skip to content

Tree rearrange crash - #48

Merged
ms609 merged 8 commits into
masterfrom
tree-rearrange-crash
May 31, 2019
Merged

Tree rearrange crash#48
ms609 merged 8 commits into
masterfrom
tree-rearrange-crash

Conversation

@ms609

@ms609 ms609 commented May 31, 2019

Copy link
Copy Markdown
Owner

Fixes #47.

@ms609
ms609 merged commit 6a868d6 into master May 31, 2019
@ms609
ms609 deleted the tree-rearrange-crash branch September 9, 2019 12:51
ms609 added a commit that referenced this pull request Jun 20, 2026
…ot loops

Bank the validated micro-lever sweep from branch claude/tbr-microlevers
(task #48). All changes are BYTE-IDENTICAL: score + candidates_evaluated
unchanged on Wortley2006/Zhu2013/Zanol2014 x seed{1,2} (verify_l1.R, 6/6).

THE WIN — a diagnostic std::getenv("TS_REVERT_CHECK") left in the per-clip
teardown (~100k+ calls/search) was costing 13-19% of EW MaximizeParsimony
wall on Windows/ucrt, where getenv is us-scale (locked env-block scan), not
sub-ns. Hoisted to a per-call bool. Quiet-machine same-seed paired A/B:
Zanol -13.2% (20/20, p=0), Zhu -19.1% (12/12, p=0); 3-way attribution proves
the getenv hoist alone is the entire win.

Also folded in (both byte-identical, both ~0 measured effect, kept as exact
cleanups):
  - cutoff hoist: maintain the EW/NA bail cutoff across the clip, recompute
    only on improvement (+0.00%, attribution-proven).
  - kept_ei: precompute sub_edge-invariant reroot skip predicates once per
    clip (marginal/wash even at Zanol-1261; droppable).

Caveat: getenv magnitude is env-size + platform dependent (Windows/ucrt
large; Linux cheaper) — Hamilton/Linux confirmation owed. Byte-identical and
strictly removes ~100k getenv/search regardless.

Detail: dev/profiling/findings.md T-P5n + dev/profiling/tbr-microlever-sweep.md

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ms609 added a commit that referenced this pull request Aug 5, 2026
test(EasyTrees): let the dataset load settle before setting treeRange
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.

Crash on NNI with non-single nodes

1 participant