René's URL Explorer Experiment


Title: Stream printed diffs instead of buffering them three times by keegancsmith · Pull Request #101 · sourcegraph/go-diff · GitHub

Open Graph Title: Stream printed diffs instead of buffering them three times by keegancsmith · Pull Request #101 · sourcegraph/go-diff

X Title: Stream printed diffs instead of buffering them three times by keegancsmith · Pull Request #101 · sourcegraph/go-diff

Description: Unified diff parser and printer for Go. Contribute to sourcegraph/go-diff development by creating an account on GitHub.

Open Graph Description: Printing a big diff used to keep about three copies of it in memory. PrintHunks built a growing buffer per file, PrintFileDiff copied that into a second one, and PrintMultiFileDiff copied each file...

X Description: Printing a big diff used to keep about three copies of it in memory. PrintHunks built a growing buffer per file, PrintFileDiff copied that into a second one, and PrintMultiFileDiff copied each file...

Opengraph URL: https://github.com/sourcegraph/go-diff/pull/101

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
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:8d3c9ca1-a2d3-2a05-5c0b-2bcecc8fdbe6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD62A:192017:1D09B93:2848C0C:6AEC6F19
html-safe-nonceba3342b156125533ef9415390c580cd73e04b5517f68e2f955e6c9e239236b6c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjJBOjE5MjAxNzoxRDA5QjkzOjI4NDhDMEM6NkFFQzZGMTkiLCJ2aXNpdG9yX2lkIjoiMTI0MTQxMzM3NjE4NDk3MTAzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5a39170ce2b0541fe29ef79367da1c8a9d7858fcc5026eeebb9be9c5c334266f
hovercard-subject-tagpull_request:4935024636
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/sourcegraph/go-diff/101/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f9b8cf4296045645e26560c2e94c555e6c775e3fba81fdfe4447e497c17f0993/sourcegraph/go-diff/pull/101
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f9b8cf4296045645e26560c2e94c555e6c775e3fba81fdfe4447e497c17f0993/sourcegraph/go-diff/pull/101
og:image:altPrinting a big diff used to keep about three copies of it in memory. PrintHunks built a growing buffer per file, PrintFileDiff copied that into a second one, and PrintMultiFileDiff copied each file...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekeegancsmith
hostnamegithub.com
expected-hostnamegithub.com
None81a8a223b8411e760195a15942ff045b37d56328f5bf02c4ca5f903e3dcb475e
turbo-cache-controlno-cache
go-importgithub.com/sourcegraph/go-diff git https://github.com/sourcegraph/go-diff.git
octolytics-dimension-user_id3979584
octolytics-dimension-user_loginsourcegraph
octolytics-dimension-repository_id23504425
octolytics-dimension-repository_nwosourcegraph/go-diff
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id23504425
octolytics-dimension-repository_network_root_nwosourcegraph/go-diff
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
releasea2c6dc5933515805b39ac7c5b9ab4e947c2f5a42
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/sourcegraph/go-diff/pull/101#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcegraph%2Fgo-diff%2Fpull%2F101
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%2Fsourcegraph%2Fgo-diff%2Fpull%2F101
Sign uphttps://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=sourcegraph%2Fgo-diff
Reloadhttps://github.com/sourcegraph/go-diff/pull/101
Reloadhttps://github.com/sourcegraph/go-diff/pull/101
Reloadhttps://github.com/sourcegraph/go-diff/pull/101
sourcegraphhttps://github.com/sourcegraph
go-diffhttps://github.com/sourcegraph/go-diff
Codehttps://github.com/sourcegraph/go-diff
Issues1 (1)https://github.com/sourcegraph/go-diff/issues
Pull requests2 (2)https://github.com/sourcegraph/go-diff/pulls
Actionshttps://github.com/sourcegraph/go-diff/actions
Projectshttps://github.com/sourcegraph/go-diff/projects
Security and qualityhttps://github.com/sourcegraph/go-diff/security
Insightshttps://github.com/sourcegraph/go-diff/pulse
https://github.com/sourcegraph/go-diff
keegancsmithhttps://github.com/keegancsmith
masterhttps://github.com/sourcegraph/go-diff/tree/master
k/streaming-printhttps://github.com/sourcegraph/go-diff/tree/k/streaming-print
Conversationhttps://github.com/sourcegraph/go-diff/pull/101
Commits1 (1)https://github.com/sourcegraph/go-diff/pull/101/commits
Checkshttps://github.com/sourcegraph/go-diff/pull/101/checks
Files changedhttps://github.com/sourcegraph/go-diff/pull/101/files
Stream printed diffs instead of buffering them three timeshttps://github.com/sourcegraph/go-diff/pull/101#top
keegancsmithhttps://github.com/keegancsmith
masterhttps://github.com/sourcegraph/go-diff/tree/master
k/streaming-printhttps://github.com/sourcegraph/go-diff/tree/k/streaming-print
https://github.com/keegancsmith
keegancsmithhttps://github.com/keegancsmith
Oct 20, 2026https://github.com/sourcegraph/go-diff/pull/101#issue-5940796700
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
https://github.com/keegancsmith
https://github.com/ampagent
feat/diff: stream printed diffs to an io.Writerhttps://github.com/sourcegraph/go-diff/pull/101/commits/63a31f835c14714ecd706d41e8d8f9ab19fcffa5
63a31f8https://github.com/sourcegraph/go-diff/pull/101/commits/63a31f835c14714ecd706d41e8d8f9ab19fcffa5
https://ampcode.com/threads/T-01a15907-a942-77c9-ab83-3ff2545b0c9dhttps://ampcode.com/threads/T-01a15907-a942-77c9-ab83-3ff2545b0c9d
https://github.com/keegancsmith
keegancsmithhttps://github.com/keegancsmith
burmudarhttps://github.com/burmudar
eseligerhttps://github.com/eseliger
stefanhenglhttps://github.com/stefanhengl
October 20, 2026 11:27https://github.com/sourcegraph/go-diff/pull/101#event-33736441615
https://github.com/keegancsmith
keegancsmithhttps://github.com/keegancsmith
Oct 20, 2026https://github.com/sourcegraph/go-diff/pull/101#issuecomment-6289817527
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
https://github.com/keegancsmith
keegancsmithhttps://github.com/keegancsmith
af960bfhttps://github.com/sourcegraph/go-diff/commit/af960bf7a4042427b40e7814f33bf6b2444125eb
Oct 20, 2026https://github.com/sourcegraph/go-diff/pull/101#event-33736506371
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
https://github.com/eseliger
eseligerhttps://github.com/eseliger
Oct 20, 2026 https://github.com/sourcegraph/go-diff/pull/101#pullrequestreview-5584943314
View reviewed changes https://github.com/sourcegraph/go-diff/pull/101/files/63a31f835c14714ecd706d41e8d8f9ab19fcffa5
eseligerhttps://github.com/eseliger
https://github.com/sourcegraph/go-diff/pull/101#pullrequestreview-5584943314
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
https://github.com/eseliger
eseligerhttps://github.com/eseliger
October 20, 2026 12:26https://github.com/sourcegraph/go-diff/pull/101#event-33740712235
https://github.co/hiddenchars
https://github.com/sourcegraph/go-diff/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%2Fsourcegraph%2Fgo-diff%2Fpull%2F101
https://github.com/eseliger
eseliger https://github.com/eseliger
https://github.com/sourcegraph/go-diff/pull/101/files/63a31f835c14714ecd706d41e8d8f9ab19fcffa5
https://github.com/burmudar
burmudar https://github.com/burmudar
https://github.com/stefanhengl
stefanhengl https://github.com/stefanhengl
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
Please reload this pagehttps://github.com/sourcegraph/go-diff/pull/101
https://github.com/keegancsmith
https://github.com/eseliger
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.