Skip to content

Exports of Revit 2015 to 2023 files take 1.6 to 3.9 times as long as with 0.11.0 #1237

Closed

Description

@DrunkOnJava

What

Exports of Revit 2015 to 2023 files take two to three and a half times as long as with 0.11.0. Measure run 41228075400 timed rvt-ifc on one runner, main at 49dd8d19 (the 0.12.0 code) against v0.11.0, with the median of three alternating runs per file:

Revit release files total time, 0.11.0 → 0.12.0 ratio peak memory, median (max)
2015 6 7.8 s → 26.3 s 3.37 1.01 (1.17)
2016 to 2018 9 8.3 s → 24.3 s 2.9 to 3.0 1.07 to 1.15 (1.19)
2019 to 2022 15 17.2 s → 51.3 s 2.8 to 3.2 1.00 to 1.13 (1.15)
2023 3 5.2 s → 10.5 s 2.01 1.01 (1.01)
2024 to 2027 33 303.7 s → 304.8 s 0.99 to 1.04 1.00 (1.03)

The files are Autodesk's sample projects of each release, plus the reference, R2025 and BIM4LCA models for 2024 and 2025. Each 2015 to 2022 sample goes from about 1 s to about 3 s.

The cost comes with what 0.12.0 reads on these releases:

  • each element's saved parameters (RE-281);
  • the phase order;
  • walls' type Function and top joins (RE-283, RE-284);
  • structural IsExternal (RE-285).

Each is a native pass over the file's records, which 0.11.0 refused on 2015 to 2022.

Done when

The stages that cost the time are measured: timing checkpoints on a 2015 and a 2019 sample, one Measure run. Each is brought to what the values it adds justify, through shared passes or narrower selections, as #1227 did for storeys on 2024. A one-runner timing against 0.11.0 then states the remaining cost per release. A slow sample project is a model for a large older project, which this would make minutes slower.

Activity

  1. added
    area:reader
    priority:P2
    type:bug
    on Oct 31, 2026
  2. changed the title [-]Exports of Revit 2015 to 2023 files take two to three times as long as with 0.11.0[/-] [+]Exports of Revit 2015 to 2023 files take 1.6 to 3.9 times as long as with 0.11.0[/+] on Oct 31, 2026
  3. DrunkOnJava commented on Oct 31, 2026

    @DrunkOnJava
    OwnerAuthor

    Profiled: a scratch branch timed each native pass (Measure 41240110248 and 41241242631; the branch is kept at refs/archive/2026-10-31/scratch/1237-pass-timings). On 2015 rac_advanced, which 0.11.0 exported in 1.1 s and 0.12.0 in 4.3 s, the native passes take 2.6 s:

    pass time
    parameter definitions, read once by each of the two readers below 0.44 s each
    saved parameters named for a property (RE-283): the elements' and types' graphs 1.18 s
    storeys' EntranceLevel: nothing selected, since no such parameter is defined under 0.01 s
    phase order (RE-281) 0.35 s
    wall type Functions (RE-283) 0.25 s
    wall top joins (RE-284) 0.15 s

    2019 rme_advanced shows the same pattern at about twice the size: definitions 0.86 to 0.93 s each, named parameters 2.16 s.

    Two fixes are in review, each byte-identical on all 90 exports:

    That recovers about 12% of these exports' time. Most of the rest is the named-parameter read decoding each element's graph to find its saved parameters, then the phase order and the wall readers. The next step is to time the graph decode separately from the metadata reading within that pass. The result ships as 0.12.1, timed against 0.11.0.

  4. 40 remaining items

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:readerpriority:P2type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions