René's URL Explorer Experiment


Title: Performance improvement of IfcParse tokenizer by stgatilov · Pull Request #82 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Performance improvement of IfcParse tokenizer by stgatilov · Pull Request #82 · IfcOpenShell/IfcOpenShell

X Title: Performance improvement of IfcParse tokenizer by stgatilov · Pull Request #82 · IfcOpenShell/IfcOpenShell

Description: Open source IFC library and geometry engine. Contribute to IfcOpenShell/IfcOpenShell development by creating an account on GitHub.

Open Graph Description: In my opinion, most of the performance issues in IfcParse are due to too many dynamic memory allocations. This PR is dedicated to removing memory allocations in tokenization process, at least for n...

X Description: In my opinion, most of the performance issues in IfcParse are due to too many dynamic memory allocations. This PR is dedicated to removing memory allocations in tokenization process, at least for n...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:0a30ba14-2882-229e-9cf7-a0e66d9ef89f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE0C:AA473:730A0E:9E1F68:6B047A01
html-safe-nonce40006f36545c73ccce39544faf397862185f5f44aa019d211a0f24318706dc9c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTBDOkFBNDczOjczMEEwRTo5RTFGNjg6NkIwNDdBMDEiLCJ2aXNpdG9yX2lkIjoiNDM0NTk5NDEwMzQzMjE4MjI3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac17cd38ccabeb5af8bc63b524ebc243ffd2176afb1e1db94d1d5bbc756f51bfb5
hovercard-subject-tagpull_request:72310139
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits
twitter:imagehttps://opengraph.githubassets.com/af7e78a8097b1093966f075ad8f721a4e5d7870e41b9e67a89c4c958b79d4d37/IfcOpenShell/IfcOpenShell/pull/82
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/af7e78a8097b1093966f075ad8f721a4e5d7870e41b9e67a89c4c958b79d4d37/IfcOpenShell/IfcOpenShell/pull/82
og:image:altIn my opinion, most of the performance issues in IfcParse are due to too many dynamic memory allocations. This PR is dedicated to removing memory allocations in tokenization process, at least for n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestgatilov
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
turbo-cache-controlno-cache
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-namepull-requests

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F82%2Fcommits
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%2F82%2Fcommits
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%2Fcommits&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits
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
aothmshttps://github.com/aothms
IfcOpenShell:masterhttps://github.com/IfcOpenShell/IfcOpenShell/tree/master
stgatilov:masterhttps://github.com/stgatilov/IfcOpenShell/tree/master
Conversationhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82
Commits15 (15)https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits
Checkshttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/checks
Files changedhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/files
Performance improvement of IfcParse tokenizerhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits#top
aothmshttps://github.com/aothms
IfcOpenShell:masterhttps://github.com/IfcOpenShell/IfcOpenShell/tree/master
stgatilov:masterhttps://github.com/stgatilov/IfcOpenShell/tree/master
Applied MSVC tabify to IfcParse.cpp/h.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/2b4d804251847d7b67f8bd84a2812a7565b01a63
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
2b4d804https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/2b4d804251847d7b67f8bd84a2812a7565b01a63
https://github.com/IfcOpenShell/IfcOpenShell/tree/2b4d804251847d7b67f8bd84a2812a7565b01a63
Now Argument base class has throwing implementation for each conversion operator (removed those from derived classes).https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/6dd0c48acd90f8c19796c99ca981cc9ea6c9c704
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
6dd0c48https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/6dd0c48acd90f8c19796c99ca981cc9ea6c9c704
https://github.com/IfcOpenShell/IfcOpenShell/tree/6dd0c48acd90f8c19796c99ca981cc9ea6c9c704
Added NullArgument class for the case when null arguments appear after setting elements.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/c438273501ddcc6f199cbe55d4066252a5341f56
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
c438273https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/c438273501ddcc6f199cbe55d4066252a5341f56
https://github.com/IfcOpenShell/IfcOpenShell/tree/c438273501ddcc6f199cbe55d4066252a5341f56
Now operator tokens are handled just like any other token.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/dc688bdf57dd93e7b885a4dafe052cf59aa7dd3b
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
dc688bdhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/dc688bdf57dd93e7b885a4dafe052cf59aa7dd3b
https://github.com/IfcOpenShell/IfcOpenShell/tree/dc688bdf57dd93e7b885a4dafe052cf59aa7dd3b
Refactoring: Token is now a struct with good fields, not a nameless pair.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/42e6eb3e7050423a0201a00a0ea71eff0a9383f1
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
42e6eb3https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/42e6eb3e7050423a0201a00a0ea71eff0a9383f1
https://github.com/IfcOpenShell/IfcOpenShell/tree/42e6eb3e7050423a0201a00a0ea71eff0a9383f1
Now end position of token is set at its construction.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/6760beb5665988af2000b343a418dc6887adcb1c
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
6760bebhttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/6760beb5665988af2000b343a418dc6887adcb1c
https://github.com/IfcOpenShell/IfcOpenShell/tree/6760beb5665988af2000b343a418dc6887adcb1c
Now type of token is determined on construction, as* function simply check stored type.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/b44547c93c93a9aede2ed6dd41541dfeeb927ae8
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
b44547chttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/b44547c93c93a9aede2ed6dd41541dfeeb927ae8
https://github.com/IfcOpenShell/IfcOpenShell/tree/b44547c93c93a9aede2ed6dd41541dfeeb927ae8
Now int-s, float-s and some etc are parsed when token is created.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/a5671f761c4787f695b7d8bfaa90b73bddb2ef40
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
a5671f7https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/a5671f761c4787f695b7d8bfaa90b73bddb2ef40
https://github.com/IfcOpenShell/IfcOpenShell/tree/a5671f761c4787f695b7d8bfaa90b73bddb2ef40
Implemented simple way to remove spaces in parsing.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/d14ab10401a42bfa78b5aa64e29ba7602433796e
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
d14ab10https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/d14ab10401a42bfa78b5aa64e29ba7602433796e
https://github.com/IfcOpenShell/IfcOpenShell/tree/d14ab10401a42bfa78b5aa64e29ba7602433796e
Tokens are now created without allocations.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/a1a5fd7ddd982e5e51a40c90bf78f147ac60b6e2
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
a1a5fd7https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/a1a5fd7ddd982e5e51a40c90bf78f147ac60b6e2
https://github.com/IfcOpenShell/IfcOpenShell/tree/a1a5fd7ddd982e5e51a40c90bf78f147ac60b6e2
Call RemoveTokenSeparators once for every token.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/9b9e25341320874102f7ddf1cc4fefd3b8f06bb2
https://github.com/stgatilov
stgatilovhttps://github.com/IfcOpenShell/IfcOpenShell/commits?author=stgatilov
9b9e253https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/9b9e25341320874102f7ddf1cc4fefd3b8f06bb2
https://github.com/IfcOpenShell/IfcOpenShell/tree/9b9e25341320874102f7ddf1cc4fefd3b8f06bb2
Added temporary std::string object in lexer (for optimization purposes).https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/9e5e95adcfd52f54b942e89dd3586d7dbfbd79fc
9e5e95ahttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/9e5e95adcfd52f54b942e89dd3586d7dbfbd79fc
https://github.com/IfcOpenShell/IfcOpenShell/tree/9e5e95adcfd52f54b942e89dd3586d7dbfbd79fc
Reimplemented asString without allocations.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/17871674a269f07c384106aaeb2c1be5a741c653
1787167https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/17871674a269f07c384106aaeb2c1be5a741c653
https://github.com/IfcOpenShell/IfcOpenShell/tree/17871674a269f07c384106aaeb2c1be5a741c653
Parsing keywords without allocations.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/b128b2e96b2c698026d03d3fba9ad048aa6f1808
b128b2ehttps://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/b128b2e96b2c698026d03d3fba9ad048aa6f1808
https://github.com/IfcOpenShell/IfcOpenShell/tree/b128b2e96b2c698026d03d3fba9ad048aa6f1808
Added checks for type to tokenFunc::as*** functions.https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/35123f3c35acf271ef745dab347d511bddba4466
35123f3https://github.com/IfcOpenShell/IfcOpenShell/pull/82/commits/35123f3c35acf271ef745dab347d511bddba4466
https://github.com/IfcOpenShell/IfcOpenShell/tree/35123f3c35acf271ef745dab347d511bddba4466
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.