Skip to content

perf(walker): an export walks the file once; its diagnostics reuse the walk (B71) - #664

Merged
DrunkOnJava merged 2 commits into
mainfrom
perf/b71-walk-once
Oct 4, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
perf/b71-walk-once

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

B71: rvt-ifc walked every file twice, once to export and once for the diagnostics' class counts (two walks of 9.8 s and 8.8 s on Autodesk's 2024 MEP sample after B70, 1,037 s and 971 s before). RevitFile memoises the production walk by minimum score and walker limits, as it memoises inflated streams and names.

Same output: Measure against main (run 37220141136) gives byte-identical IFC and diagnostics.json, which carries the reused walk's class counts, for all six models.

…e walk (B71)

rvt-ifc walked the file twice: once in export_rvt_doc to write the elements,
again in production_walker_stats for the diagnostics' class counts. On
Autodesk's 2024 MEP sample the two walks took 1,037 s and 971 s before B70
(timing run 37216027753) and 9.8 s and 8.8 s after it (run 37219167645).
RevitFile now memoises the production walk's elements by minimum score and
walker limits, as it memoises inflated streams and names, and
iter_elements_with_control returns a copy of them on a second call with the
same arguments. WalkerLimits gains PartialEq and Eq for the key.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 4, 2026 17:28
@DrunkOnJava
DrunkOnJava merged commit cf8e066 into main Oct 4, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the perf/b71-walk-once branch October 4, 2026 17:37
DrunkOnJava added a commit that referenced this pull request Oct 4, 2026
… Measure (B68) (#640)

B68: pins Autodesk's MEP sample projects (rme_basic and rme_advanced,
2024 to 2027) in research/autodesk-sample-projects.tsv for Measure's
samples option. With B70 (#661) and B71 (#664), Measure with every
sample, the eight MEP projects included, completes in 7 minutes (run
37221135938); rvt-ifc and rvt-info exit 0 on all eight.
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