Repository navigation
perf(walker): an export walks the file once; its diagnostics reuse the walk (B71) - #664
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
October 4, 2026 17:28
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.