Skip to content

Revit 2015–2023 exports: the remaining time against 0.11.0 after #1237 #1335

Closed

Description

@DrunkOnJava

#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 FamilySymbol record 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

Activity

  1. added
    area:partitions
    priority:P2
    type:feature
    on Nov 4, 2026
  2. 21 remaining items

  3. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    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.

    file v0.11.0 (ms) main (ms) main / v0.11.0 peak main / v0.11.0
    2015 rac_advanced 1093 2120 1.94 1.02
    2015 rac_basic 1071 1383 1.29 0.65
    2015 rme_advanced 2323 4313 1.86 0.85
    2015 rme_basic 2004 3876 1.93 0.92
    2015 rst_advanced 779 1136 1.46 0.81
    2015 rst_basic 477 655 1.37 0.80
    2016 rac_advanced 1154 2198 1.90 1.00
    2016 rac_basic 1118 1435 1.28 0.71
    2016 rst_basic 492 704 1.43 0.99
    Core Interior (2024) 5939 4300 0.72 0.90
    RE1 Architecture (2025) 1615 1117 0.69 0.79

    How to read it:

    • These exports are not the same output. Every ifc.sha256 differs: 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.
    • Peak memory is at or below v0.11.0's on every file (0.65 to 1.02).
    • The 2024 and 2025 projects are 0.69 to 0.77 of v0.11.0's time.
    • Coverage: this run timed only the 2015 and 2016 samples. The 2017 to 2023 samples were not in its timing shard, so their ratio is not restated here.

    #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.

  4. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    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.

    file v0.11.0 (ms) main (ms) main / v0.11.0 peak main / v0.11.0
    2017-rac_advanced_sample_project 960 1864 1.94 1.00
    2017-rac_basic_sample_project 924 1224 1.32 0.76
    2017-rst_basic_sample_project 372 558 1.50 0.97
    2018-rac_advanced_sample_project 1036 1946 1.88 1.00
    2018-rac_basic_sample_project 889 1167 1.31 0.67
    2018-rst_basic_sample_project 367 556 1.51 0.79
    2019-rac_advanced_sample_project 1051 1930 1.84 0.99
    2019-rac_basic_sample_project 977 1260 1.29 0.62
    2019-rme_advanced_sample_project 2293 3835 1.67 0.71
    2019-rme_basic_sample_project 1954 3434 1.76 0.77
    2019-rst_advanced_sample_project 766 1094 1.43 0.80
    2019-rst_basic_sample_project 369 555 1.50 0.79
    2020-racadvancedsampleproject 1036 1964 1.90 0.86
    2020-racbasicsampleproject 957 1284 1.34 0.62
    2020-rstbasicsampleproject 376 555 1.48 0.82
    2021-racadvancedsampleproject 1147 2091 1.82 1.03
    2021-racbasicsampleproject 1002 1290 1.29 0.77
    2021-rstbasicsampleproject 392 571 1.46 0.78
    2022-racadvancedsampleproject 1077 1971 1.83 0.99
    2022-racbasicsampleproject 1004 1349 1.34 0.75
    2022-rstbasicsampleproject 418 607 1.45 0.94
    2023-racadvancedsampleproject 1985 4210 2.12 1.21
    2023-racbasicsampleproject 1714 2325 1.36 0.76
    2023-rmebasicsampleproject 4477 6724 1.50 0.70
    2023-rstbasicsampleproject 583 886 1.52 1.17

    With the 11-14 run (2015 and 2016), every release of 2015 to 2023 is now restated:

    • Time is 1.29 to 2.12 times v0.11.0's. The rac_advanced saves are the slowest at 1.82 to 2.12, rac_basic 1.29 to 1.36, rst_basic 1.45 to 1.52, and the MEP samples 1.50 to 1.76.
    • Peak memory is at or below v0.11.0's on every file but two 2023 saves: rac_advanced 1.21 and rst_basic 1.17.
    • The 2024 and 2025 projects in the same run are 0.71 to 0.87 of v0.11.0's time and 0.79 to 0.94 of its peak.

    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 FamilySymbol decoded 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's main, 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.

  5. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    The per-pass costs on today's main (e6201f4c), from probe_pass_ledger on Autodesk's samples of 2015 to 2023 (Measure 43663097758; one run, so the times are a single round and only rough):

    sample phase pass (ms) definitions made (ms) wall records (ms) all native walks
    2015 rac_advanced 66 53 46 20 walks, 563 ms
    2015 rac_basic 45 31 18 17, 281 ms
    2015 rme_advanced 131 115 51 18, 1,270 ms
    2015 rst_basic 40 30 5 9, 141 ms
    2019 rac_advanced 66 55 52 19, 577 ms
    2021 rac_advanced 71 58 57 19, 637 ms
    2023 rac_advanced 71 55 83 40, 1,439 ms
    2023 rme_basic 127 101 93 37, 2,647 ms

    Against this issue's profile of 2015 rac_advanced (run 41781975396, after #1333's first cuts):

    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_graphs over every record, is the first to look at.

  6. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    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 one extract_graphs walk that:

    • decodes graphs for three classes only (AllProjectPhases, ProjectPhase, RoomElem);
    • for every other record, decodes only its Element base, for m_createdPhaseId and m_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:

    sample phase pass (ms) definitions made (ms) difference
    2015 rac_advanced 66 53 13
    2015 rac_basic 45 31 14
    2015 rme_advanced 131 115 16
    2015 rst_basic 40 30 10
    2019 rac_advanced 66 55 11
    2021 rac_advanced 71 58 13
    2023 rac_advanced 71 55 16
    2023 rme_basic 127 101 26

    So 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 excludes and attach_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 FamilySymbol decode 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.

  7. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    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:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:partitionspriority:P2type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions