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
Domain: github.com
IPv4 address: 140.82.113.3
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ac1d4681-dfd3-3150-c289-1b7d46fd336d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90C6:3CEE1E:5CCBAB:832962:6B04775C |
| html-safe-nonce | d7c54aa7ae6de22beb3c967f4b09a9cefba9353d0e1eaebffe69e831185913d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEM2OjNDRUUxRTo1Q0NCQUI6ODMyOTYyOjZCMDQ3NzVDIiwidmlzaXRvcl9pZCI6IjUzOTA1NDYxMjYwNzY5NDY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10d2f23c2a0eedc85d3b1c81df4b2034fa746d87b0fc533ba532226c2175431f |
| hovercard-subject-tag | issue:975297802 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/1674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fae3e51904cc1cb01b847b533a0d6639154c2951a86c18def7a07e4ddea38cb4/IfcOpenShell/IfcOpenShell/issues/1674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fae3e51904cc1cb01b847b533a0d6639154c2951a86c18def7a07e4ddea38cb4/IfcOpenShell/IfcOpenShell/issues/1674 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Moult |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width