René's URL Explorer Experiment


Title: Optimising geometry iterator initialisation · Issue #1674 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Optimising geometry iterator initialisation · Issue #1674 · IfcOpenShell/IfcOpenShell

X Title: Optimising geometry iterator initialisation · Issue #1674 · IfcOpenShell/IfcOpenShell

Description: Typically with models coming from Tekla, I am finding that geometry iteration is extremely slow. I've dealt with hundreds of megabytes of IFCs from Revit, but Tekla seems to be able to pack a lot more into smaller files, though I'm not y...

Open Graph Description: Typically with models coming from Tekla, I am finding that geometry iteration is extremely slow. I've dealt with hundreds of megabytes of IFCs from Revit, but Tekla seems to be able to pack a lot m...

X Description: Typically with models coming from Tekla, I am finding that geometry iteration is extremely slow. I've dealt with hundreds of megabytes of IFCs from Revit, but Tekla seems to be able to pack a l...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optimising geometry iterator initialisation","articleBody":"Typically with models coming from Tekla, I am finding that geometry iteration is extremely slow. I've dealt with hundreds of megabytes of IFCs from Revit, but Tekla seems to be able to pack a lot more into smaller files, though I'm not yet sure how. My computer will struggle to import an 80MB Tekla file, but will happily churn through a 300MB Revit file.\r\n\r\nI'd like to investigate ways to optimise the iterator in this scenario, otherwise Tekla files become a bit unworkable.\r\n\r\nI've only started code-diving, but this is my first time looking at this aspect, so I could be totally off the mark.\r\n\r\nIt seems as though the `iterator.initialize()` is already slow. It seems to spend a huge amount of time in [collect](https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L394) even before multiprocessing begins.\r\n\r\nA few random sample files, I've also highlighted a count of by_type(\"IfcRepresentation\") that has a non zero \"OfProductRepresentation\" or \"RepresentationMap\" in case it is useful:\r\n\r\nSource | Stage | STEP Lines | IfcRepresentations | % | OfProductRepresentation | RepresentationMap\r\n--- | --- | --- | --- | --- | --- | ---\r\nRevit | Consultant | 569435 | 7647 | 1.34 | 6903 | 744\r\nRevit | Trade | 1911426 | 48038 | 2.51 | 45883 | 2155\r\nTekla | Steel | 1184489 | 308607 | 26.05 | 308603 | 4\r\n\r\nThe first one initialises in 1.2 seconds. The second in 165 seconds (not linear, it seems). The third I gave up waiting.\r\n\r\nNote 99% of the IfcRepresentations in the Revit files are Body. However, Tekla exports a Body, Axis, and CoG for everything. Therefore, out of 308603, only 106568 are body.\r\n\r\nThoughts? I will continue to look, but thought I'd post what I had started looking at.\r\n\r\nEdit: happy to provide some sample files if it helps :)","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2021-08-20T06:08:52Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1674"}

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:ac1d4681-dfd3-3150-c289-1b7d46fd336d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id90C6:3CEE1E:5CCBAB:832962:6B04775C
html-safe-nonced7c54aa7ae6de22beb3c967f4b09a9cefba9353d0e1eaebffe69e831185913d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEM2OjNDRUUxRTo1Q0NCQUI6ODMyOTYyOjZCMDQ3NzVDIiwidmlzaXRvcl9pZCI6IjUzOTA1NDYxMjYwNzY5NDY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac10d2f23c2a0eedc85d3b1c81df4b2034fa746d87b0fc533ba532226c2175431f
hovercard-subject-tagissue:975297802
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/1674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fae3e51904cc1cb01b847b533a0d6639154c2951a86c18def7a07e4ddea38cb4/IfcOpenShell/IfcOpenShell/issues/1674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fae3e51904cc1cb01b847b533a0d6639154c2951a86c18def7a07e4ddea38cb4/IfcOpenShell/IfcOpenShell/issues/1674
og:image:altTypically with models coming from Tekla, I am finding that geometry iteration is extremely slow. I've dealt with hundreds of megabytes of IFCs from Revit, but Tekla seems to be able to pack a lot m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMoult
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
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
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/1674#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F1674
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%2F1674
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/1674
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1674
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1674
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 requests937 (937)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/1674
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
Optimising geometry iterator initialisationhttps://github.com/IfcOpenShell/IfcOpenShell/issues/1674#top
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 20, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issue-975297802
collecthttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L394
Nexthttps://github.com/IfcOpenShell/IfcOpenShell/issues/1674?timeline_page=1
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 20, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-902468177
herehttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L345
these lineshttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L402-L415
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 20, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-902604710
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 20, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-902655315
reuse_ok_https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L684
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 20, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-902656996
@Stinkfist0https://github.com/Stinkfist0
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 21, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903038829
#47https://github.com/IfcOpenShell/IfcOpenShell/pull/47
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomFunctions.cpp#L1811https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomFunctions.cpp#L1811
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomFunctions.cpp#L1812-L1827https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomFunctions.cpp#L1812-L1827
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 21, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903106994
#47https://github.com/IfcOpenShell/IfcOpenShell/pull/47
#482https://github.com/IfcOpenShell/IfcOpenShell/pull/482
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L267https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L267
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 21, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903116825
a check in the iteratorhttps://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/blenderbim/blenderbim/bim/import_ifc.py#L628
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L402-L415https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcgeom/IfcGeomIteratorImplementation.h#L402-L415
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 21, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903166144
https://user-images.githubusercontent.com/1096535/130332928-3e670e53-2e90-46cf-afed-98d2ca841190.png
aothmshttps://github.com/aothms
on Aug 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#event-5190683251
#1674 store inverse references as tuple of (id type index)https://github.com/IfcOpenShell/IfcOpenShell/commit/37851fac9df1f912a5d79de1a19f769fc6d29169
#1674https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
37851fahttps://github.com/IfcOpenShell/IfcOpenShell/commit/37851fac9df1f912a5d79de1a19f769fc6d29169
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903246413
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903247198
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903247779
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-903338452
https://github.com/aothms
aothmshttps://github.com/aothms
on Aug 23, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-904025372
IfcOpenBot@88f7d30#commitcomment-55316018https://github.com/IfcOpenBot/IfcOpenShell/commit/88f7d307b87d475e28d8d3550a4a996c71cca812#commitcomment-55316018
https://github.com/Moult
Moulthttps://github.com/Moult
on Aug 23, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-904165353
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918933454
https://github.com/aothms
aothmshttps://github.com/aothms
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918947215
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918958585
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/blenderbim/blenderbim/bim/import_ifc.py#L592https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/blenderbim/blenderbim/bim/import_ifc.py#L592
https://github.com/aothms
aothmshttps://github.com/aothms
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918963732
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918977848
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918980028
#771https://github.com/IfcOpenShell/IfcOpenShell/issues/771
#1290https://github.com/IfcOpenShell/IfcOpenShell/issues/1290
aothmshttps://github.com/aothms
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#event-5298344107
#1674 use id to filterhttps://github.com/IfcOpenShell/IfcOpenShell/commit/38a0c7106057004d2df77b4bf77713c83589a5bb
#1674https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
38a0c71https://github.com/IfcOpenShell/IfcOpenShell/commit/38a0c7106057004d2df77b4bf77713c83589a5bb
https://github.com/aothms
aothmshttps://github.com/aothms
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918986235
38a0c71https://github.com/IfcOpenShell/IfcOpenShell/commit/38a0c7106057004d2df77b4bf77713c83589a5bb
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 14, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-918990694
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 15, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-919818027
https://github.com/aothms
aothmshttps://github.com/aothms
on Sep 15, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-919937297
Moulthttps://github.com/Moult
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#event-5339676997
Filter by context id, not using curves or solids. See #1674.https://github.com/IfcOpenShell/IfcOpenShell/commit/636d80093652db449168757dae6d1bb2dba788e6
#1674https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
636d800https://github.com/IfcOpenShell/IfcOpenShell/commit/636d80093652db449168757dae6d1bb2dba788e6
aothmshttps://github.com/aothms
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#event-5342064526
Filter by context id, not using curves or solids. See #1674.https://github.com/IfcOpenShell/IfcOpenShell/commit/514c5eb790a8c432d6dfc3878f7026f7081e2b2d
#1674https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
514c5ebhttps://github.com/IfcOpenShell/IfcOpenShell/commit/514c5eb790a8c432d6dfc3878f7026f7081e2b2d
https://github.com/Moult
Moulthttps://github.com/Moult
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#issuecomment-924797685
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 22, 2021https://github.com/IfcOpenShell/IfcOpenShell/issues/1674#event-5342164739
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/1674
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.