Title: Wire intersection check expensive on DTV model · Issue #5999 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Wire intersection check expensive on DTV model · Issue #5999 · IfcOpenShell/IfcOpenShell
X Title: Wire intersection check expensive on DTV model · Issue #5999 · IfcOpenShell/IfcOpenShell
Description: This is basically the same issue as #4915 reopened but that one is getting kind of long and I was able to narrow it down due to the fantastic new builds website. Testing the rac.ifc file again with recent builds, it now takes 3.75 second...
Open Graph Description: This is basically the same issue as #4915 reopened but that one is getting kind of long and I was able to narrow it down due to the fantastic new builds website. Testing the rac.ifc file again with...
X Description: This is basically the same issue as #4915 reopened but that one is getting kind of long and I was able to narrow it down due to the fantastic new builds website. Testing the rac.ifc file again with...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5999
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wire intersection check expensive on DTV model","articleBody":"This is basically the same issue as #4915 reopened but that one is getting kind of long and I was able to narrow it down due to the fantastic new builds website.\n\nTesting the rac.ifc file again with recent builds, it now takes 3.75 seconds (compared to 1.1 in 0.7.0 and 0.72 before the regression).\n\nLatest good build is fc9bcb0 (taking about 0.7 to 0.8 seconds) and earliest bad build is a84a581 so I guess somewhere in `git log fc9bcb0..a84a581` something happened.\n\nHere are good stats:\n\n```\ncores: 1 cgal 4.010830801998964\ncores: 12 cgal 0.6871321169892326\ncores: 1 opencascade 6.205589167017024\ncores: 12 opencascade 1.124729254981503\ncores: 1 hybrid-cgal-simple-opencascade 5.121581318991957\ncores: 12 hybrid-cgal-simple-opencascade 1.0077503499924205\n```\n\n... and bad:\n\n```\ncores: 1 cgal 4.00005674600834\ncores: 12 cgal 0.6959928880096413\ncores: 1 opencascade 29.673849075014004\ncores: 12 opencascade 6.692519722011639\ncores: 1 hybrid-cgal-simple-opencascade 28.72333783499198\ncores: 12 hybrid-cgal-simple-opencascade 6.574400977988262\n```\n\nAnd test script:\n\n```python\nimport timeit, ifcopenshell, ifcopenshell.geom, ifcopenshell.ifcopenshell_wrapper\nimport multiprocessing\nprint(ifcopenshell.ifcopenshell_wrapper.version())\n# ifcopenshell.ifcopenshell_wrapper.turn_on_detailed_logging()\n\nfilepaths = [\n r\"/home/dion/drive/ifcs/benchmark/racbasicsampleproject.ifc\"\n]\n\ndef test(f, geometry_library, core_count):\n t = timeit.timeit(\n lambda: list(\n map(\n lambda x: x.geometry.verts,\n ifcopenshell.geom.iterate(ifcopenshell.geom.settings(), f, core_count, geometry_library=geometry_library),\n )\n ),\n number=2,\n )\n print(f\"cores: {core_count}\", geometry_library, t)\n\nfor filepath in filepaths:\n f = ifcopenshell.open(filepath)\n print(filepath)\n cpu_count = multiprocessing.cpu_count()\n test(f, \"cgal\", 1)\n f = ifcopenshell.open(filepath)\n test(f, \"cgal\", cpu_count)\n f = ifcopenshell.open(filepath)\n test(f, \"opencascade\", 1)\n f = ifcopenshell.open(filepath)\n test(f, \"opencascade\", cpu_count)\n f = ifcopenshell.open(filepath)\n test(f, \"hybrid-cgal-simple-opencascade\", 1)\n f = ifcopenshell.open(filepath)\n test(f, \"hybrid-cgal-simple-opencascade\", cpu_count)\n```\n","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2025-01-20T01:14:05Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5999"}
| 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:3b2b4554-b6cf-b39e-b61b-3642ed841895 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7B0:375B4B:7AC580:A95C7F:6B04AB7F |
| html-safe-nonce | a431cb0e25f3da43c87ac5637c91a7141780353c6779cb4f223ba818da1ba9ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0IwOjM3NUI0Qjo3QUM1ODA6QTk1QzdGOjZCMDRBQjdGIiwidmlzaXRvcl9pZCI6IjI5MzAwNDUwMzA2MzcwMjIwNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 702937f3f00b289ed85065d239fc80e18e94e4021c17698f21c73a3599d6d050 |
| hovercard-subject-tag | issue:2797958200 |
| 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/5999/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3c710486bffcf46827ffed6c5970c38e031635c9ca8345aa2dc8087e81b3763/IfcOpenShell/IfcOpenShell/issues/5999 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3c710486bffcf46827ffed6c5970c38e031635c9ca8345aa2dc8087e81b3763/IfcOpenShell/IfcOpenShell/issues/5999 |
| og:image:alt | This is basically the same issue as #4915 reopened but that one is getting kind of long and I was able to narrow it down due to the fantastic new builds website. Testing the rac.ifc file again with... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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