René's URL Explorer Experiment


Title: Ifcfile entity look-up + Kernel::get_layers optimizations by Stinkfist0 · Pull Request #482 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Ifcfile entity look-up + Kernel::get_layers optimizations by Stinkfist0 · Pull Request #482 · IfcOpenShell/IfcOpenShell

X Title: Ifcfile entity look-up + Kernel::get_layers optimizations by Stinkfist0 · Pull Request #482 · IfcOpenShell/IfcOpenShell

Description: Recently we reran conversion for a file ("MEP File") that to our best of recollection was converted in somewhat orderly fashion a long time ago. This time, the XML conversion seemed to take forever, so I started to looking into the biggest time spenders in XML serialization code, which lead mostly to IfcFile::getInverse(). This lead me to optimize entity look-ups and to remove one particular slow part of layer retrieval code that doesn't seem to yield any results ever. Timing includes only the conversion ("-layer code" == unnecessary(?) layer code removed, no other optimizations) Conference center (http://openifcmodel.cs.auckland.ac.nz/_models/20160124OTC-Conference Center.ifc): before: 1 m 15 s -layer code: 8 s after: 7 s "Massive File" (1.1 GB) before: 21 m 2 s -layer code: 19 m 46 s after: 6 m 58 s "MEP File" (180 MB) before: did not finish (hours?) -layer code: 14 m 58 s after: 3 m 25 s

Open Graph Description: Recently we reran conversion for a file ("MEP File") that to our best of recollection was converted in somewhat orderly fashion a long time ago. This time, the XML conversion seemed to ta...

X Description: Recently we reran conversion for a file ("MEP File") that to our best of recollection was converted in somewhat orderly fashion a long time ago. This time, the XML conversion seem...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/482

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c4fe3f76-f522-9689-cf9f-48286597da79
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD14E:92683:899525:BC9F15:6B048056
html-safe-nonce072acf233ebb635868fc0a10bd3797980147032b435450f57eb011594ac02598
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTRFOjkyNjgzOjg5OTUyNTpCQzlGMTU6NkIwNDgwNTYiLCJ2aXNpdG9yX2lkIjoiNzY5MjQwMDk2MjgyNDMzOTU0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdb5ff0d93d58d079fc3b168d6097a11964837cd614f60a2661f77eca899001c7
hovercard-subject-tagpull_request:219635205
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
twitter:imagehttps://avatars.githubusercontent.com/u/227876?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/227876?s=400&v=4
og:image:altRecently we reran conversion for a file ("MEP File") that to our best of recollection was converted in somewhat orderly fashion a long time ago. This time, the XML conversion seemed to ta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F482%2Ffiles
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%2Fpull%2F482%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
aothmshttps://github.com/aothms
IfcOpenShell:masterhttps://github.com/IfcOpenShell/IfcOpenShell/tree/master
Tridify:topic/xmlserializer-optimizationhttps://github.com/Tridify/IfcOpenShell/tree/topic/xmlserializer-optimization
Conversation 14 https://github.com/IfcOpenShell/IfcOpenShell/pull/482
Commits 5 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits
Checks 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Ifcfile entity look-up + Kernel::get_layers optimizations https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#top
Show all changes 5 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
e9cc122 Optimize IfcFile::entitiesByReference() by reserving capacity for Ifc… Stinkfist0 Sep 28, 2018 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits/e9cc122b6adc58acdd5f2673e64afdbc5f37a240
bec35af IfcConvert: print durations of file parsing and XML conversion. Stinkfist0 Oct 1, 2018 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits/bec35aff062bca8fc193d2f9003212e96a2c4eed
403b1ed IfcFile::entitiesByReference: cache loaded references. Profiling show… Stinkfist0 Oct 1, 2018 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits/403b1ed58faf3024c9bb6a6830cacde8689f9aaa
cfc962b IfcGeom::Kernel::get_layers: remove what would appear to be unnecessa… Stinkfist0 Oct 1, 2018 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits/cfc962b71f4c0de67abe3aec28458ea39dfaa5c5
0d61ef0 IfcFile: possibility to mark an entity as modified so that potential … Stinkfist0 Dec 21, 2018 https://github.com/IfcOpenShell/IfcOpenShell/pull/482/commits/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files
IfcConvert.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
IfcGeomFunctions.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-9a424634927f2e461ce243458859c31eda0f858a353d21be3bd7825b5b68a894
IfcEntityList.h https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-d689438e6399864c905aa44584ddc0a226d807ad91f78eaf83f46593dc68cae7
IfcFile.h https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
IfcParse.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
IfcUtil.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-890c1db77394a9381d772387e20ec4777aade93a49607db72856ac72649baa23
src/ifcconvert/IfcConvert.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcconvert/IfcConvert.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-090feb54886a4903823c6f85f2f482bf7a0e715a08e24dd7da1f9a338a221f1c
src/ifcgeom/IfcGeomFunctions.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-9a424634927f2e461ce243458859c31eda0f858a353d21be3bd7825b5b68a894
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcgeom/IfcGeomFunctions.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-9a424634927f2e461ce243458859c31eda0f858a353d21be3bd7825b5b68a894
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-9a424634927f2e461ce243458859c31eda0f858a353d21be3bd7825b5b68a894
src/ifcparse/IfcEntityList.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-d689438e6399864c905aa44584ddc0a226d807ad91f78eaf83f46593dc68cae7
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcparse/IfcEntityList.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-d689438e6399864c905aa44584ddc0a226d807ad91f78eaf83f46593dc68cae7
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-d689438e6399864c905aa44584ddc0a226d807ad91f78eaf83f46593dc68cae7
src/ifcparse/IfcFile.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcparse/IfcFile.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-1dbdf85d588da7eb0fdcf29fd2867fe20944aca7dba8e73674d7a8524b27d672
src/ifcparse/IfcParse.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcparse/IfcParse.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-b040b6c3201487d58cce8bdf084d9299d961719c7f722ca4802855a2f3daa818
src/ifcparse/IfcUtil.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-890c1db77394a9381d772387e20ec4777aade93a49607db72856ac72649baa23
View file https://github.com/Tridify/IfcOpenShell/blob/0d61ef0264ed0f5f116e80cb6b9be1e3fc8e7b6b/src/ifcparse/IfcUtil.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-890c1db77394a9381d772387e20ec4777aade93a49607db72856ac72649baa23
https://github.com/IfcOpenShell/IfcOpenShell/pull/482/files#diff-890c1db77394a9381d772387e20ec4777aade93a49607db72856ac72649baa23
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.