René's URL Explorer Experiment


Title: Use a shared buffer in calls of git_treebuilder_write to avoid heap contention by mitesch · Pull Request #3892 · libgit2/libgit2 · GitHub

Open Graph Title: Use a shared buffer in calls of git_treebuilder_write to avoid heap contention by mitesch · Pull Request #3892 · libgit2/libgit2

X Title: Use a shared buffer in calls of git_treebuilder_write to avoid heap contention by mitesch · Pull Request #3892 · libgit2/libgit2

Description: A cross-platform, linkable library implementation of Git that you can use in your application. - Use a shared buffer in calls of git_treebuilder_write to avoid heap contention by mitesch · Pull Request #3892 · libgit2/libgit2

Open Graph Description: When doing many merges in parallel in a large repository, we saw performance degrade rapidly due to memory allocations in git_treebuilder_write. This change uses a shared buffer created in git_tree...

X Description: When doing many merges in parallel in a large repository, we saw performance degrade rapidly due to memory allocations in git_treebuilder_write. This change uses a shared buffer created in git_tree...

Opengraph URL: https://github.com/libgit2/libgit2/pull/3892

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8596a902-c200-9f59-d7c2-151bf2613f92
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAD24:246CE:3E874DF:5168F85:6A5D1CC6
html-safe-nonce12b4e62017e0ef960d3d1f8d686f12117189bee9096efb4c3457dd3a4ffa9b8c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDI0OjI0NkNFOjNFODc0REY6NTE2OEY4NTo2QTVEMUNDNiIsInZpc2l0b3JfaWQiOiI2NjMxNjMwMzA5NDE0NDc2OTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4a5178e01921c6325a8d2808b259c5e85b4ac1e5e2b77620eb05f2ee1a8fdec0
hovercard-subject-tagpull_request:80528580
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/libgit2/libgit2/3892/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/28478b29aa8cd6d4adb4d57ba58c58f03099ce375cfe50577f51cfe9d81934ec/libgit2/libgit2/pull/3892
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/28478b29aa8cd6d4adb4d57ba58c58f03099ce375cfe50577f51cfe9d81934ec/libgit2/libgit2/pull/3892
og:image:altWhen doing many merges in parallel in a large repository, we saw performance degrade rapidly due to memory allocations in git_treebuilder_write. This change uses a shared buffer created in git_tree...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemitesch
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git
octolytics-dimension-user_id394745
octolytics-dimension-user_loginlibgit2
octolytics-dimension-repository_id901662
octolytics-dimension-repository_nwolibgit2/libgit2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id901662
octolytics-dimension-repository_network_root_nwolibgit2/libgit2
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/libgit2/libgit2/pull/3892#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fpull%2F3892
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fpull%2F3892
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=libgit2%2Flibgit2
Reloadhttps://github.com/libgit2/libgit2/pull/3892
Reloadhttps://github.com/libgit2/libgit2/pull/3892
Reloadhttps://github.com/libgit2/libgit2/pull/3892
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
libgit2 https://github.com/libgit2
libgit2https://github.com/libgit2/libgit2
Notifications https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Fork 2.6k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Star 10.5k https://github.com/login?return_to=%2Flibgit2%2Flibgit2
Code https://github.com/libgit2/libgit2
Issues 421 https://github.com/libgit2/libgit2/issues
Pull requests 107 https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality 9 https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
Code https://github.com/libgit2/libgit2
Issues https://github.com/libgit2/libgit2/issues
Pull requests https://github.com/libgit2/libgit2/pulls
Discussions https://github.com/libgit2/libgit2/discussions
Actions https://github.com/libgit2/libgit2/actions
Projects https://github.com/libgit2/libgit2/projects
Security and quality https://github.com/libgit2/libgit2/security
Insights https://github.com/libgit2/libgit2/pulse
ethomsonhttps://github.com/ethomson
libgit2:masterhttps://github.com/libgit2/libgit2/tree/master
mitesch:shared_bufferhttps://github.com/mitesch/libgit2/tree/shared_buffer
Conversationhttps://github.com/libgit2/libgit2/pull/3892
Commits1 (1)https://github.com/libgit2/libgit2/pull/3892/commits
Checkshttps://github.com/libgit2/libgit2/pull/3892/checks
Files changedhttps://github.com/libgit2/libgit2/pull/3892/files
Use a shared buffer in calls of git_treebuilder_write to avoid heap contentionhttps://github.com/libgit2/libgit2/pull/3892#top
ethomsonhttps://github.com/ethomson
libgit2:masterhttps://github.com/libgit2/libgit2/tree/master
mitesch:shared_bufferhttps://github.com/mitesch/libgit2/tree/shared_buffer
https://github.com/mitesch
miteschhttps://github.com/mitesch
Aug 8, 2016https://github.com/libgit2/libgit2/pull/3892#issue-170034499
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
Aug 8, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238393397
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
pks-thttps://github.com/pks-t
Aug 9, 2016 https://github.com/libgit2/libgit2/pull/3892#discussion-diff-74005267
View reviewed changes https://github.com/libgit2/libgit2/pull/3892/files/b10accf82a1701cb55cd70232032ede15b5f2392#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
src/tree.chttps://github.com/libgit2/libgit2/pull/3892/files#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
pks-thttps://github.com/pks-t
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r74005267
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/pks-t
pks-thttps://github.com/pks-t
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238469408
@ethomsonhttps://github.com/ethomson
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
miteschhttps://github.com/mitesch
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238576195
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238584584
@miteschhttps://github.com/mitesch
@pks-thttps://github.com/pks-t
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
carlosmnhttps://github.com/carlosmn
Aug 9, 2016 https://github.com/libgit2/libgit2/pull/3892#discussion-diff-74092810
View reviewed changes https://github.com/libgit2/libgit2/pull/3892/files/b10accf82a1701cb55cd70232032ede15b5f2392#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
src/tree.chttps://github.com/libgit2/libgit2/pull/3892/files#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
carlosmnhttps://github.com/carlosmn
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r74092810
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
miteschhttps://github.com/mitesch
force-pushedhttps://github.com/libgit2/libgit2/compare/b10accf82a1701cb55cd70232032ede15b5f2392..e1cbe808996e6d22eb86892200e2ec3a7d926af8
b10accfhttps://github.com/libgit2/libgit2/commit/b10accf82a1701cb55cd70232032ede15b5f2392
e1cbe80https://github.com/libgit2/libgit2/commit/e1cbe808996e6d22eb86892200e2ec3a7d926af8
Compare https://github.com/libgit2/libgit2/compare/b10accf82a1701cb55cd70232032ede15b5f2392..e1cbe808996e6d22eb86892200e2ec3a7d926af8
August 9, 2016 16:29https://github.com/libgit2/libgit2/pull/3892#event-750105704
carlosmnhttps://github.com/carlosmn
Aug 9, 2016 https://github.com/libgit2/libgit2/pull/3892#discussion-diff-74094045
View reviewed changes https://github.com/libgit2/libgit2/pull/3892/files/b10accf82a1701cb55cd70232032ede15b5f2392#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
src/tree.chttps://github.com/libgit2/libgit2/pull/3892/files#diff-fe0ef4e9d2cca13622a45455b6210a1783e7cc3088f9e443203e4883b1b66ceb
carlosmnhttps://github.com/carlosmn
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r74094045
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/carlosmn
carlosmnhttps://github.com/carlosmn
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238614730
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
miteschhttps://github.com/mitesch
Aug 9, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-238650256
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
miteschhttps://github.com/mitesch
force-pushedhttps://github.com/libgit2/libgit2/compare/10c752fadaab2e4bf939fb36b994e9ac9a5266a5..d368e87c761390c12e4755669a8d09d817947261
10c752fhttps://github.com/libgit2/libgit2/commit/10c752fadaab2e4bf939fb36b994e9ac9a5266a5
d368e87https://github.com/libgit2/libgit2/commit/d368e87c761390c12e4755669a8d09d817947261
Compare https://github.com/libgit2/libgit2/compare/10c752fadaab2e4bf939fb36b994e9ac9a5266a5..d368e87c761390c12e4755669a8d09d817947261
September 28, 2016 14:26https://github.com/libgit2/libgit2/pull/3892#event-805523167
https://github.com/mitesch
miteschhttps://github.com/mitesch
Sep 29, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-250533040
@ethomsonhttps://github.com/ethomson
@carlosmnhttps://github.com/carlosmn
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
Oct 9, 2016 https://github.com/libgit2/libgit2/pull/3892#pullrequestreview-3428326
View reviewed changes https://github.com/libgit2/libgit2/pull/3892/files
src/tree.hhttps://github.com/libgit2/libgit2/pull/3892/files#diff-945011c3c3497737f13badd113916f7f275a7970ba5d38eee11deb5bfb3f2e4a
ethomsonhttps://github.com/ethomson
Oct 9, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r82525627
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
carlosmnhttps://github.com/carlosmn
Oct 10, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r82557404
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
ethomsonhttps://github.com/ethomson
Oct 10, 2016https://github.com/libgit2/libgit2/pull/3892#discussion_r82567032
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
write_tree: use shared buffer for writing treeshttps://github.com/libgit2/libgit2/pull/3892/commits/87aaefe20b2e2fad8f0b8b236d1c23ce9ec5340f
87aaefehttps://github.com/libgit2/libgit2/pull/3892/commits/87aaefe20b2e2fad8f0b8b236d1c23ce9ec5340f
https://github.com/mitesch
miteschhttps://github.com/mitesch
force-pushedhttps://github.com/libgit2/libgit2/compare/d368e87c761390c12e4755669a8d09d817947261..87aaefe20b2e2fad8f0b8b236d1c23ce9ec5340f
d368e87https://github.com/libgit2/libgit2/commit/d368e87c761390c12e4755669a8d09d817947261
87aaefehttps://github.com/libgit2/libgit2/commit/87aaefe20b2e2fad8f0b8b236d1c23ce9ec5340f
Compare https://github.com/libgit2/libgit2/compare/d368e87c761390c12e4755669a8d09d817947261..87aaefe20b2e2fad8f0b8b236d1c23ce9ec5340f
December 12, 2016 15:46https://github.com/libgit2/libgit2/pull/3892#event-890551162
https://github.com/mitesch
miteschhttps://github.com/mitesch
Dec 12, 2016https://github.com/libgit2/libgit2/pull/3892#issuecomment-266466719
@ethomsonhttps://github.com/ethomson
@carlosmnhttps://github.com/carlosmn
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/ethomson
ethomsonhttps://github.com/ethomson
44e8af8https://github.com/libgit2/libgit2/commit/44e8af8f290d91c32fe3814658f2b4cabe9447fc
Jan 21, 2017https://github.com/libgit2/libgit2/pull/3892#event-931822160
https://github.com/johnhaley81
johnhaley81https://github.com/johnhaley81
Feb 28, 2017 https://github.com/libgit2/libgit2/pull/3892#ref-pullrequest-207616148
Bump libgit2 to 43275f512ef888a14c43bde8007251ce595be32a + unmerged proxy fixes nodegit/nodegit#1223 https://github.com/nodegit/nodegit/pull/1223
https://github.com/tommoor
tommoorhttps://github.com/tommoor
Mar 24, 2017 https://github.com/libgit2/libgit2/pull/3892#ref-issue-216925861
Segfault in git_treebuilder_write #4181 https://github.com/libgit2/libgit2/issues/4181
tommoorhttps://github.com/tommoor
Mar 24, 2017 https://github.com/libgit2/libgit2/pull/3892#ref-commit-8f355c9
https://github.com/tommoor
Revert "Merge pull requesthttps://github.com/goabstract/libgit2/commit/8f355c9d36cdcd96477c2cd66d00085c2f44c045
libgit2#3892https://github.com/libgit2/libgit2/pull/3892
from mitesch/shared_buffer"https://github.com/goabstract/libgit2/commit/8f355c9d36cdcd96477c2cd66d00085c2f44c045
8f355c9https://github.com/goabstract/libgit2/commit/8f355c9d36cdcd96477c2cd66d00085c2f44c045
44e8af8https://github.com/goabstract/libgit2/commit/44e8af8f290d91c32fe3814658f2b4cabe9447fc
3b4eb10https://github.com/goabstract/libgit2/commit/3b4eb107c21eb855dd651bc2e5904c0b29ece9b7
tommoorhttps://github.com/tommoor
Mar 25, 2017 https://github.com/libgit2/libgit2/pull/3892#ref-commit-f008d04
https://github.com/tommoor
Revert "Merge pull requesthttps://github.com/goabstract/libgit2/commit/f008d0463a501e3a6fae59d37534f9750b619772
libgit2#3892https://github.com/libgit2/libgit2/pull/3892
from mitesch/shared_buffer"https://github.com/goabstract/libgit2/commit/f008d0463a501e3a6fae59d37534f9750b619772
f008d04https://github.com/goabstract/libgit2/commit/f008d0463a501e3a6fae59d37534f9750b619772
44e8af8https://github.com/goabstract/libgit2/commit/44e8af8f290d91c32fe3814658f2b4cabe9447fc
3b4eb10https://github.com/goabstract/libgit2/commit/3b4eb107c21eb855dd651bc2e5904c0b29ece9b7
https://github.co/hiddenchars
https://github.com/libgit2/libgit2/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%2Fpull%2F3892
https://github.com/carlosmn
carlosmn https://github.com/carlosmn
https://github.com/libgit2/libgit2/pull/3892/files/d368e87c761390c12e4755669a8d09d817947261
https://github.com/ethomson
ethomson https://github.com/ethomson
https://github.com/libgit2/libgit2/pull/3892/files/d368e87c761390c12e4755669a8d09d817947261
Please reload this pagehttps://github.com/libgit2/libgit2/pull/3892
https://github.com/mitesch
https://github.com/ethomson
https://github.com/pks-t
https://github.com/carlosmn
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

Viewport: width=device-width


URLs of crawlers that visited me.