Repository navigation
Description
#1237 tracked the 0.12.0 slowdown on Revit 2015–2023 exports, which ran 2 to 3.4 times 0.11.0's time. #1333 closes it: the exports are now 1.43 times 0.11.0's time over Autodesk's 33 samples of 2015 to 2023 (single files 1.09 to 1.65), with byte-identical output. Each ratio comes from one runner per comparison: run 41782874568 against v0.11.0, run 41782871819 against main.
This issue tracks what remains, at the per-pass profile of run 41781975396 (2015 rac_advanced, 1,775 ms total; the native passes took 772 ms after #1333's first cuts):
- The definitions pass decodes every
FamilySymbolrecord in full for two root fields: 117 ms of its 236 ms. A root-only read could ingest a record the full decode refuses today, so it is not value-neutral as it stands. A cut needs a way to tell those records apart that is proved on the samples. - Wall records: 173 ms.
- The phase pass: what is left after perf(reader): Revit 2015 to 2023 exports take 0.54 to 0.78 of main's time, byte-identical (#1237) #1333's direct Element-base reader.
- The shared preamble before the native passes: about 590 ms.
Part of the remaining time is the cost of what 0.11.0 did not read: named parameters, phases and types. That part is not a regression, but each pass is still measured and cut where the output provably cannot change.
Done when
- Every pass above is either cut, with byte identity on every Measure model (base=main, unfiltered), or recorded as a measured floor with its reason.
- The per-release ratio against v0.11.0 is restated from a same-runner run.
Status, 2026-11-05
- Named-parameter read: not a byte-scan cost. perf(reader): the named-parameter read searches a record for each id it looks for, not every four-byte window (#1335) #1502 searched a record for each id instead of every four-byte window and gained nothing: 1.002 over 33 samples against perf(reader): the definitions pass, the wall records read and the catalog's document build only the fields they read; the preamble does less (#1335) #1483's head 4140b96 (run 42130086398, with no file strictly faster and 8 strictly slower), output byte-identical. Most of the read's 57 ms on
rac_advancedis the walk over 17,101 records and the selection of 5,608. Closed unmerged; its tip isrefs/archive/2026-11-05/perf/1335-needle-scan. - Plan cache: perf(reader): a pass over a file's records makes the plan of each class once, not once for each record (#1335) #1503 measures 0.974 over the same 33 samples against the same head (run 42130101254, strictly faster on 23 of 39 files and strictly slower on none), byte-identical on 66 of 66 outputs.
Activity
perf(reader): Revit 2015 to 2023 exports take 0.54 to 0.78 of main's …
docs: 0.15.0 is the published release, each channel checked from what…
fix(ifc): a wall with an edited profile cut back from inside the wall…
perf(reader): name the type of Options::graph_fields (#1335)
perf(reader): fold the wall records read (#1485) into the definitions…
perf(reader): fold the native preamble (#1488) into the definitions s…
perf(reader): each projected field list is a constant beside its one …
21 remaining items
fix(ifc): RE-440 review: wall types from the shared wall read, the 20…
DrunkOnJava commentedon Nov 14, 2026
The per-release ratio, restated on today's
main(2b4f18b) against v0.11.0 (94b89ed), one runner per shard, median of three rounds: Measure 43542790654,-f timing=true.rac_advancedrac_basicrme_advancedrme_basicrst_advancedrst_basicrac_advancedrac_basicrst_basicHow to read it:
ifc.sha256differs: since v0.11.0 the 2015 to 2023 path reads walls' joins and openings, materials, phases, Levels, ports, pipes and ducts, saved parameters and Areas (RE-362 to RE-372, RE-450 among them). So a 2015 or 2016 export takes 1.28 to 1.94 times as long as 0.11.0's and does far more. That is not the like-for-like slowdown this issue tracked after Exports of Revit 2015 to 2023 files take 1.6 to 3.9 times as long as with 0.11.0 #1237.#1503 (449f586) and #1483 (e3cc717) both landed in 0.16.0. This issue is now on the 1.x milestone, with the other 2015 to 2023 work.
DrunkOnJava commentedon Nov 15, 2026
The ratio for the releases the 11-14 run left out:
main(e6201f4c) against v0.11.0 (94b89edf) on Autodesk's samples of 2017 to 2023, one runner per shard, median of three rounds. Measure 43662289344,-f timing=true.With the 11-14 run (2015 and 2016), every release of 2015 to 2023 is now restated:
rac_advancedsaves are the slowest at 1.82 to 2.12,rac_basic1.29 to 1.36,rst_basic1.45 to 1.52, and the MEP samples 1.50 to 1.76.rac_advanced1.21 andrst_basic1.17.That meets this issue's second item. The first is not met. Of the four passes the body lists, the wall records' second read is cut (#1828, byte-identical). The definitions pass (each
FamilySymboldecoded in full for two root fields), the phase pass and the shared preamble have neither a cut nor a measured floor recorded here. Each needs a per-pass profile on today'smain, like the one run 41781975396 gave for #1333. Part of the gap is what v0.11.0 did not read at all (named parameters, phases, types, and since then saved meshes and much more of the record), which is not a regression, but this issue asks for each pass to be measured and not assumed.DrunkOnJava commentedon Nov 15, 2026
The per-pass costs on today's
main(e6201f4c), fromprobe_pass_ledgeron Autodesk's samples of 2015 to 2023 (Measure 43663097758; one run, so the times are a single round and only rough):rac_advancedrac_basicrme_advancedrst_basicrac_advancedrac_advancedrac_advancedrme_basicAgainst this issue's profile of 2015
rac_advanced(run 41781975396, after #1333's first cuts):FamilySymboldecode alone was 117 ms of 236.So the three passes the body names come to about 165 ms of today's 2,120 ms export of that file. All the native walks together are 563 ms. Most of the 1.94 ratio is outside the passes this issue lists. It is in what the preamble and the export now read and draw that v0.11.0 did not: on 2023 the native walks double, to 40, with the saved graphics and the readers RE-353 widened. A cut there is a new profile (the export's stages, not its native passes), not this list's. The remaining item of the done-when is a reason for each of these three costs as a floor, or a cut of one. The phase pass, at 40 to 131 ms for one
extract_graphsover every record, is the first to look at.DrunkOnJava commentedon Nov 15, 2026
The phase pass: a floor, with what a cut would save (from the per-pass costs above, Measure 43663097758).
compute_phase_filter(src/research/native_phases.rs) is oneextract_graphswalk that:AllProjectPhases,ProjectPhase,RoomElem);m_createdPhaseIdandm_demolishedPhaseId.It is the only walk on the export path that selects every record. The others select by class or by id.
The cost of that wider selection can be read off the ledger, because the definitions pass is a walk over the same records that selects by class:
rac_advancedrac_basicrme_advancedrst_basicrac_advancedrac_advancedrac_advancedrme_basicSo most of the phase pass is the walk itself, which every native read pays. Reading every record's base adds 10 to 26 ms, about 0.6% of the 2,120 ms export of 2015
rac_advanced.That is the most a cut of the phase pass alone could save: selecting only the ids whose phases are used (the element records, by
excludesandattach_phases_created_32, plus the three classes). It would also tie the memoised filter to an element-record scan it does not need today, for every release that reads it.Floor. The phase pass costs one walk over every record. Reading their bases on top is under 1% of the export, and not cut for that.
What could cut more. The cost the ledger shows is the walks themselves (20 on 2015
rac_advanced, 40 on 2023), each a pass over every partition's records. One walk serving several readers' selections at once would cut more than any single pass's selection. That is #1694's direction (the channel index), not this issue's list.With the definitions pass (53 ms, from 117 for its
FamilySymboldecode alone) and the wall records (46 ms, from 173 after #1828) already cut, this leaves each of the three passes the issue names with a cut or a measured floor. Unless that walk-sharing is wanted here, the done-when is met.DrunkOnJava commentedon Nov 15, 2026
Closing on the comment above. The done-when asked, for each of the three passes, for a cut or a reason it is a floor:
FamilySymboldecode alone;The rest of the 1.94 ratio against 0.11.0 is the export's own stages and the number of native walks (20 to 40 per file). That is #1694's direction, not this list.