René's URL Explorer Experiment


Title: Slow Performance of IfcOpenShell Compared to XBim for Large IFC Files · Issue #6712 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Slow Performance of IfcOpenShell Compared to XBim for Large IFC Files · Issue #6712 · IfcOpenShell/IfcOpenShell

X Title: Slow Performance of IfcOpenShell Compared to XBim for Large IFC Files · Issue #6712 · IfcOpenShell/IfcOpenShell

Description: Bug Description I am encountering a significant performance issue with IfcOpenShell when processing IFC files, especially when compared to XBim. My program, written in C++ and using IfcOpenShell, runs much slower than XBim for files of v...

Open Graph Description: Bug Description I am encountering a significant performance issue with IfcOpenShell when processing IFC files, especially when compared to XBim. My program, written in C++ and using IfcOpenShell, r...

X Description: Bug Description I am encountering a significant performance issue with IfcOpenShell when processing IFC files, especially when compared to XBim. My program, written in C++ and using IfcOpenShell, r...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6712

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Slow Performance of IfcOpenShell Compared to XBim for Large IFC Files","articleBody":"### Bug Description\n\nI am encountering a significant performance issue with IfcOpenShell when processing IFC files, especially when compared to XBim. My program, written in C++ and using IfcOpenShell, runs much slower than XBim for files of various sizes (12MB, 80MB, 200MB, and 700MB). Since both libraries utilize C++ and OpenCascade for geometry processing, I expected their performance to be more comparable, but IfcOpenShell consistently underperforms.\n\nHere’s how to reproduce the issue:\n\nCompile and run the provided C++ code with IfcOpenShell.\nUse an IFC file (e.g., \"D:/Trachhaha/Code/file200Mb.ifc\") as input.\nMeasure the time taken for file loading and the iteration process.\nPerformance Data:\n12MB: IfcOpenShell (222s) vs XBim (2s)\n80MB: IfcOpenShell (242s) vs XBim (3s)\n200MB: IfcOpenShell (70s) vs XBim (20s)\n700MB: IfcOpenShell (288s) vs XBim (46s)\nPerformance Breakdown:\nFor smaller files (12MB and 80MB), the while(iterator.next()) loop accounts for 98% of the total processing time.\nFor larger files (200MB and 700MB), the file opening process (IfcParse::IfcFile) takes up approximately 40% of the total time.\nAttempts at Optimization:\nI’ve explored several alternatives to improve performance, but none have been successful:\n\nCGAL: Encountered runtime errors.\ncgal-simple: Performance was similar to hybrid-cgal-simple-opencascade.\nOpenCascade alone: Ran extremely slowly, worse than IfcOpenShell.\nRequest for Help:\nI need assistance in optimizing IfcOpenShell to approach XBim’s performance levels. Specifically, I’d like guidance on:\n\nReducing the time spent in the while(iterator.next()) loop for smaller files.\nSpeeding up the file opening process for larger files.\nAny configuration tweaks, alternative approaches, or optimizations that could improve overall performance.\nSince XBim achieves much faster results using C++ and OpenCascade, I believe there’s potential for IfcOpenShell to improve in these areas. Please advise on how I can enhance the speed of my program.\n\n### Attachments\n\nhttps://drive.google.com/drive/folders/1gd1uKXPl_FYwQyrLma5j1y5sm46pO9Hf?usp=drive_link\n\n\n### Debug and Error Output\n\n```true\nint main() {\n    auto start = std::chrono::high_resolution_clock::now();\n    std::string filePath = \"D:/Trachhaha/Code/file200Mb.ifc\";\n    IfcParse::IfcFile file(filePath);\n\n    // Geometry processing settings\n    ifcopenshell::geometry::Settings settings;\n    settings.set(\"use-world-coords\", true);               // Use global coordinates\n    settings.set(\"weld-vertices\", false);                 // Preserve vertices for normals\n    settings.set(\"apply-default-materials\", false);       // No default materials needed\n    settings.set(\"convert-back-units\", true);             // Convert units back to IFC\n\n    int num_threads = std::thread::hardware_concurrency();\n    IfcGeom::Iterator iterator(\"hybrid-cgal-simple-opencascade\", settings, &file, num_threads);\n\n    if (!iterator.initialize()) {\n        std::cerr \u003c\u003c \"Failed to initialize iterator\" \u003c\u003c std::endl;\n        return 0;\n    }\n\n    auto end0 = std::chrono::high_resolution_clock::now();\n    std::chrono::duration\u003cdouble> elapsed1 = end0 - start;\n    std::cout \u003c\u003c \"\\nTime1 (file loading): \" \u003c\u003c elapsed1.count() \u003c\u003c \" s \";\n\n    auto start2 = std::chrono::high_resolution_clock::now();\n    int count = 0;\n    do {\n        int progress = iterator.progress();\n        if (progress % 5 == 0 && progress != count) {\n            std::cout \u003c\u003c \"\\nProgress: \" \u003c\u003c progress;\n            count = progress;\n        }\n        // Placeholder for handling instance and geometry data\n//struct ShapeGeometryData {\n//\tint label;\n//\tstd::vector\u003cdouble> vertices;\n//\tstd::vector\u003cdouble> normals;\n//\tstd::vector\u003cint> indices;\n//\tBoundingBox localBoundingBox;\n//};\n\n//struct ShapeInstanceData {\n//\tint InstanceLabel;\n//\tstd::string ExpressTypeId;\n//\tint IfcProductLabel;\n//\tint StyleLabel;\n//\tint ShapeGeometryLabel;\n//\tint RepresentationContext;\n//\tRepresentationType RepresentationType;\n//\tEigen::Matrix4d Transformation;\n//\tBoundingBox globalBoundingBox;\n//\tstd::string IfcType;\n//\tstd::string Guid;\n//};\n    } while (iterator.next());\n\n    auto end2 = std::chrono::high_resolution_clock::now();\n    std::chrono::duration\u003cdouble> elapsed2 = end2 - start2;\n    std::cout \u003c\u003c \"\\nTime2 (iteration): \" \u003c\u003c elapsed2.count() \u003c\u003c \" s \";\n    std::chrono::duration\u003cdouble> elapsed3 = end2 - start;\n    std::cout \u003c\u003c \"\\nTotal Time: \" \u003c\u003c elapsed3.count() \u003c\u003c \" s \";\n\n    return 0;\n}\nAdditional Details:\nIfcOpenShell Version: [V0.8.0]\nOperating System: [Windows 10]\nCompiler: [Visua studio 2022]\nHardware: [Intel i7-11th, 32GB RAM]\n```","author":{"url":"https://github.com/trachhaha","@type":"Person","name":"trachhaha"},"datePublished":"2025-05-16T09:12:19Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6712"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b48b7a87-67b4-e8ee-105b-2d53a1b22b9a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DFE:19AD56:5AC5C1:794F0F:6B04BE61
html-safe-nonce503a2c765845fd664f689d90eff6728b05f90158357596bdbc5ef9f993bf4850
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REZFOjE5QUQ1Njo1QUM1QzE6Nzk0RjBGOjZCMDRCRTYxIiwidmlzaXRvcl9pZCI6Ijg1NzA2Njk2NDY4MzgyODM4NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac272c1f612f1b9f54c3a41b2b5f3d52de576e7e99011a2b46f77dbc3c7bc3dcbb
hovercard-subject-tagissue:3068434895
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/6712/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8b8b91dde6593d562e1a4393a3c192335201998b321d22121f30b5ee2b3fdb79/IfcOpenShell/IfcOpenShell/issues/6712
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b8b91dde6593d562e1a4393a3c192335201998b321d22121f30b5ee2b3fdb79/IfcOpenShell/IfcOpenShell/issues/6712
og:image:altBug Description I am encountering a significant performance issue with IfcOpenShell when processing IFC files, especially when compared to XBim. My program, written in C++ and using IfcOpenShell, r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametrachhaha
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/6712#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F6712
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F6712
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/6712
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/6712
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/6712
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests939 (939)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/6712
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/6712
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
Slow Performance of IfcOpenShell Compared to XBim for Large IFC Fileshttps://github.com/IfcOpenShell/IfcOpenShell/issues/6712#top
IfcOpenShell-Corehttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Core%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/trachhaha
trachhahahttps://github.com/trachhaha
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issue-3068434895
https://drive.google.com/drive/folders/1gd1uKXPl_FYwQyrLma5j1y5sm46pO9Hf?usp=drive_linkhttps://drive.google.com/drive/folders/1gd1uKXPl_FYwQyrLma5j1y5sm46pO9Hf?usp=drive_link
trachhahahttps://github.com/trachhaha
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#event-17685577136
Gorgious56https://github.com/Gorgious56
IfcOpenShell-Corehttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Core%22
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#event-17685606014
https://github.com/aothms
aothmshttps://github.com/aothms
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2886177557
https://github.com/trachhaha
trachhahahttps://github.com/trachhaha
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2886503200
https://github.com/aothms
aothmshttps://github.com/aothms
on May 16, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2886555513
aothmshttps://github.com/aothms
on May 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#event-17704477146
OcctNoCleanTriangulation CacheShapes PermissiveShapeReuse setting; Cg…https://github.com/IfcOpenShell/IfcOpenShell/commit/439f9c14ce13cd5d970eaf2fc9d4536ce04b39a9
439f9c1https://github.com/IfcOpenShell/IfcOpenShell/commit/439f9c14ce13cd5d970eaf2fc9d4536ce04b39a9
https://github.com/aothms
aothmshttps://github.com/aothms
on May 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2889192435
falken10vdlhttps://github.com/falken10vdl
on May 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#event-17704753552
OcctNoCleanTriangulation CacheShapes PermissiveShapeReuse setting; Cg…https://github.com/falken10vdl/IfcOpenShell/commit/037fa5041ba6d2f952af080db46a3501f92bdb54
037fa50https://github.com/falken10vdl/IfcOpenShell/commit/037fa5041ba6d2f952af080db46a3501f92bdb54
https://github.com/trachhaha
trachhahahttps://github.com/trachhaha
on May 19, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2889441849
@aothmshttps://github.com/aothms
https://github.com/trachhaha
trachhahahttps://github.com/trachhaha
on May 19, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#issuecomment-2889554979
@aothmshttps://github.com/aothms
petruconduraruhttps://github.com/petruconduraru
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jul 21, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/6712#event-28270660883
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/6712
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/6712
IfcOpenShell-Corehttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Core%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.