René's URL Explorer Experiment


Title: perf: optimize LineCache to reduce allocations by HazAT · Pull Request #2903 · getsentry/sentry-ruby · GitHub

Open Graph Title: perf: optimize LineCache to reduce allocations by HazAT · Pull Request #2903 · getsentry/sentry-ruby

X Title: perf: optimize LineCache to reduce allocations by HazAT · Pull Request #2903 · getsentry/sentry-ruby

Description: Sentry SDK for Ruby. Contribute to getsentry/sentry-ruby development by creating an account on GitHub.

Open Graph Description: ✅ Low risk — internal refactor of LineCache Part of #2901 (reduce memory allocations by ~53%) Changes Use Hash#fetch instead of ||= to avoid double hash lookup in getlines Remove valid_path?/getli...

X Description: ✅ Low risk — internal refactor of LineCache Part of #2901 (reduce memory allocations by ~53%) Changes Use Hash#fetch instead of ||= to avoid double hash lookup in getlines Remove valid_path?/getli...

Opengraph URL: https://github.com/getsentry/sentry-ruby/pull/2903

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/_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:56adc60d-f6d8-0f6a-ca3b-114f190c3f26
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA26A:5F67C:4AF9B:632F1:6B043265
html-safe-nonce2c54e95b37d49f5b1ab51b427b42c482a75136b906606f92606c7f49c85d15f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjZBOjVGNjdDOjRBRjlCOjYzMkYxOjZCMDQzMjY1IiwidmlzaXRvcl9pZCI6IjU2MDE2ODM3OTQ0OTYzMzY0ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfc257d965cfa897cb6e7fa226f52b77321f1a9c35b010a6b5780a6c14a409b67
hovercard-subject-tagpull_request:3415422596
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/getsentry/sentry-ruby/2903/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bdee86d7bc8883c45bd698ea37347cec8f0377d78522d446f5d52240c742b839/getsentry/sentry-ruby/pull/2903
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bdee86d7bc8883c45bd698ea37347cec8f0377d78522d446f5d52240c742b839/getsentry/sentry-ruby/pull/2903
og:image:alt✅ Low risk — internal refactor of LineCache Part of #2901 (reduce memory allocations by ~53%) Changes Use Hash#fetch instead of ||= to avoid double hash lookup in getlines Remove valid_path?/getli...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHazAT
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-ruby git https://github.com/getsentry/sentry-ruby.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3947396
octolytics-dimension-repository_nwogetsentry/sentry-ruby
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3947396
octolytics-dimension-repository_network_root_nwogetsentry/sentry-ruby
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-ruby/pull/2903#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-ruby%2Fpull%2F2903
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%2Fgetsentry%2Fsentry-ruby%2Fpull%2F2903
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=getsentry%2Fsentry-ruby
Reloadhttps://github.com/getsentry/sentry-ruby/pull/2903
Reloadhttps://github.com/getsentry/sentry-ruby/pull/2903
Reloadhttps://github.com/getsentry/sentry-ruby/pull/2903
getsentryhttps://github.com/getsentry
sentry-rubyhttps://github.com/getsentry/sentry-ruby
Codehttps://github.com/getsentry/sentry-ruby
Issues73 (73)https://github.com/getsentry/sentry-ruby/issues
Pull requests32 (32)https://github.com/getsentry/sentry-ruby/pulls
Actionshttps://github.com/getsentry/sentry-ruby/actions
Security and qualityhttps://github.com/getsentry/sentry-ruby/security
Insightshttps://github.com/getsentry/sentry-ruby/insights
https://github.com/getsentry/sentry-ruby
sl0thentr0pyhttps://github.com/sl0thentr0py
masterhttps://github.com/getsentry/sentry-ruby/tree/master
perf/linecache-optimizationhttps://github.com/getsentry/sentry-ruby/tree/perf/linecache-optimization
Conversationhttps://github.com/getsentry/sentry-ruby/pull/2903
Commits1 (1)https://github.com/getsentry/sentry-ruby/pull/2903/commits
Checkshttps://github.com/getsentry/sentry-ruby/pull/2903/checks
Files changedhttps://github.com/getsentry/sentry-ruby/pull/2903/files
perf: optimize LineCache to reduce allocationshttps://github.com/getsentry/sentry-ruby/pull/2903#top
sl0thentr0pyhttps://github.com/sl0thentr0py
masterhttps://github.com/getsentry/sentry-ruby/tree/master
perf/linecache-optimizationhttps://github.com/getsentry/sentry-ruby/tree/perf/linecache-optimization
https://github.com/HazAT
HazAThttps://github.com/HazAT
Mar 18, 2026https://github.com/getsentry/sentry-ruby/pull/2903#issue-4095810425
#2901https://github.com/getsentry/sentry-ruby/pull/2901
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/HazAT
HazAThttps://github.com/HazAT
Mar 18, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#ref-pullrequest-4095804230
perf: Reduce memory allocations by ~53% during exception capture #2901 https://github.com/getsentry/sentry-ruby/pull/2901
HazAThttps://github.com/HazAT
Mar 18, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#ref-commit-b81088e
https://github.com/HazAT
perf: reduce memory allocations by ~53% during exception capturehttps://github.com/getsentry/sentry-ruby/commit/b81088ed77d58341c41140885b662b8551655143
b81088ehttps://github.com/getsentry/sentry-ruby/commit/b81088ed77d58341c41140885b662b8551655143
#2902https://github.com/getsentry/sentry-ruby/pull/2902
#2903https://github.com/getsentry/sentry-ruby/pull/2903
#2904https://github.com/getsentry/sentry-ruby/pull/2904
#2905https://github.com/getsentry/sentry-ruby/pull/2905
#2906https://github.com/getsentry/sentry-ruby/pull/2906
#2907https://github.com/getsentry/sentry-ruby/pull/2907
#2908https://github.com/getsentry/sentry-ruby/pull/2908
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Mar 18, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#pullrequestreview-3968657044
View reviewed changes https://github.com/getsentry/sentry-ruby/pull/2903/files
sentry-ruby/lib/sentry/linecache.rbhttps://github.com/getsentry/sentry-ruby/pull/2903/files#diff-893acc61a71a225dcb3f660787dca4f9fa82f4e5c769dc76ae5111a32aa167d3
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
force-pushedhttps://github.com/getsentry/sentry-ruby/compare/7ce022ecc789c706b6137149ed3f22b9ad65124b..542ee2198f513911fae0f5329f22fd6631aa0ac2
7ce022ehttps://github.com/getsentry/sentry-ruby/commit/7ce022ecc789c706b6137149ed3f22b9ad65124b
542ee21https://github.com/getsentry/sentry-ruby/commit/542ee2198f513911fae0f5329f22fd6631aa0ac2
Compare https://github.com/getsentry/sentry-ruby/compare/7ce022ecc789c706b6137149ed3f22b9ad65124b..542ee2198f513911fae0f5329f22fd6631aa0ac2
March 19, 2026 16:28https://github.com/getsentry/sentry-ruby/pull/2903#event-23724287392
https://github.com/apps/sentry
sentryhttps://github.com/apps/sentry
Mar 19, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#pullrequestreview-3976413643
View reviewed changes https://github.com/getsentry/sentry-ruby/pull/2903/files
sentry-ruby/lib/sentry/linecache.rbhttps://github.com/getsentry/sentry-ruby/pull/2903/files#diff-893acc61a71a225dcb3f660787dca4f9fa82f4e5c769dc76ae5111a32aa167d3
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Mar 19, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#pullrequestreview-3976438086
View reviewed changes https://github.com/getsentry/sentry-ruby/pull/2903/files
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-ruby/pull/2903#pullrequestreview-3976438086
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?data=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImJ1Z2JvdC12MiJ9.eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTo4OGZmNTlkYS1hMWNmLTQ4OWQtYjk5ZS1mYWZjYWM2NjYxZWUiLCJlbmNyeXB0aW9uS2V5IjoiZDdZTkNNX3IwakJrLXZ5SThUNkw2QkJGT25iSGI3VTRwTHF3R1lHQWNlayIsImJyYW5jaCI6InBlcmYvbGluZWNhY2hlLW9wdGltaXphdGlvbiIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LXJ1YnkifSwiaWF0IjoxNzczOTM4MDU1LCJleHAiOjE3NzY1MzAwNTV9.wk0L3w1qdF5Ra7uKpl79z6L9Fx33S-1lZy0GrgK3DKSS91eDstzKVdi1QIzbOe61gb5M6RID2n_s7IgHsxsK3hmZo8wehmWH6jDOd24Pk5eV9fgdHP9_lSz_EQkHaJ-jJ62kUOjP_KafaY_hMPUjgco-wQxGPfG35lNRXt3aETyr7_2QRlMxf2hUwuXEkTq6hvhizi4sOlEz-ZXH1UGZ0I053cDKNP3qOArBDnoYTolPwgCu_CYP6zPUpFu_YWFgt97b9w2OdkbajyXK-TPHJLge95h7pM9ScIs-LWHKc_8v0WniwSMSyIwOM-gWRYbXbbK82YiebbAYEO9KozGc8w
Cursor dashboardhttps://www.cursor.com/dashboard?tab=bugbot
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
sentry-ruby/lib/sentry/linecache.rbhttps://github.com/getsentry/sentry-ruby/pull/2903/files#diff-893acc61a71a225dcb3f660787dca4f9fa82f4e5c769dc76ae5111a32aa167d3
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Mar 19, 2026https://github.com/getsentry/sentry-ruby/pull/2903#issuecomment-4091690629
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/HazAT
https://github.com/sl0thentr0py
perf: optimize LineCache to reduce allocationshttps://github.com/getsentry/sentry-ruby/pull/2903/commits/5eb86fbeaee95c014633ce733de54b6aa3f85127
5eb86fbhttps://github.com/getsentry/sentry-ruby/pull/2903/commits/5eb86fbeaee95c014633ce733de54b6aa3f85127
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
force-pushedhttps://github.com/getsentry/sentry-ruby/compare/542ee2198f513911fae0f5329f22fd6631aa0ac2..5eb86fbeaee95c014633ce733de54b6aa3f85127
542ee21https://github.com/getsentry/sentry-ruby/commit/542ee2198f513911fae0f5329f22fd6631aa0ac2
5eb86fbhttps://github.com/getsentry/sentry-ruby/commit/5eb86fbeaee95c014633ce733de54b6aa3f85127
Compare https://github.com/getsentry/sentry-ruby/compare/542ee2198f513911fae0f5329f22fd6631aa0ac2..5eb86fbeaee95c014633ce733de54b6aa3f85127
March 19, 2026 16:59https://github.com/getsentry/sentry-ruby/pull/2903#event-23725339378
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
Mar 19, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#pullrequestreview-3976588953
View reviewed changes https://github.com/getsentry/sentry-ruby/pull/2903/files/5eb86fbeaee95c014633ce733de54b6aa3f85127
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
aaa5a9ahttps://github.com/getsentry/sentry-ruby/commit/aaa5a9a6148bced1a217499d12a9df29c914eef6
Mar 19, 2026https://github.com/getsentry/sentry-ruby/pull/2903#event-23725549129
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/sl0thentr0py
sl0thentr0pyhttps://github.com/sl0thentr0py
March 19, 2026 17:06https://github.com/getsentry/sentry-ruby/pull/2903#event-23725550567
https://github.com/apps/sentry-release-bot
sentry-release-bothttps://github.com/apps/sentry-release-bot
Jun 1, 2026 https://github.com/getsentry/sentry-ruby/pull/2903#ref-issue-4564475615
publish: getsentry/sentry-ruby@6.6.0 getsentry/publish#8352 https://github.com/getsentry/publish/issues/8352
https://github.co/hiddenchars
https://github.com/getsentry/sentry-ruby/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%2Fgetsentry%2Fsentry-ruby%2Fpull%2F2903
https://github.com/apps/sentry
sentry[bot] https://github.com/apps/sentry
https://github.com/getsentry/sentry-ruby/pull/2903/files/542ee2198f513911fae0f5329f22fd6631aa0ac2
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-ruby/pull/2903/files/542ee2198f513911fae0f5329f22fd6631aa0ac2
https://github.com/sl0thentr0py
sl0thentr0py https://github.com/sl0thentr0py
https://github.com/getsentry/sentry-ruby/pull/2903/files/5eb86fbeaee95c014633ce733de54b6aa3f85127
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
Please reload this pagehttps://github.com/getsentry/sentry-ruby/pull/2903
https://github.com/HazAT
https://github.com/sl0thentr0py
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.