René's URL Explorer Experiment


Title: Angular Router numeric query parameters can exhaust memory during SSR · Issue #70908 · angular/angular · GitHub

Open Graph Title: Angular Router numeric query parameters can exhaust memory during SSR · Issue #70908 · angular/angular

X Title: Angular Router numeric query parameters can exhaust memory during SSR · Issue #70908 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description #70717 fixed the numeric matrix-parameter case from #70716, but query parameters still use regular object assignment in parseQueryParam():...

Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description #70717 fixed the numeric matrix-parameter case from #70716, but query parameters still use regular...

X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description #70717 fixed the numeric matrix-parameter case from #70716, but query parameters still use regular...

Opengraph URL: https://github.com/angular/angular/issues/70908

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular Router numeric query parameters can exhaust memory during SSR","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nNo\n\n### Description\n\n\n#70717 fixed the numeric matrix-parameter case from #70716, but query parameters still use regular object assignment in `parseQueryParam()`:\n\n```ts\nparams[decodedKey] = decodedVal;\n```\n\nNumeric query parameter names therefore still behave differently in V8.\n\nFor example:\n\n```text\n?0&17&34\n```\n\nis parsed as:\n\n```json\n{\n  \"0\": \"\",\n  \"17\": \"\",\n  \"34\": \"\"\n}\n```\n\nIn my test this object retained around **558 KB**, while a similar nonnumeric control retained around **197 KB**.\n\nThe Router copies this map when creating URLs. An application can enable this globally with:\n\n```ts\nwithRouterConfig({\n  defaultQueryParamsHandling: 'merge',\n})\n```\n\nso during SSR the cost is repeated for every RouterLink rendered on the page.\n\nI tested Angular **22.2.0 on Node.js 24** through Nginx with a **16,365-byte request line** containing 2,827 parameter names:\n\n| Links | 256 MiB | 512 MiB |\n| ---: | ---: | ---: |\n| 30 | 16 requests | |\n| 50 | 8 requests | 20 requests |\n| 75 | 6 requests | 12 requests |\n| 100 | 4 requests | 10 requests |\n\nThe byte-identical nonnumeric control completed successfully.\n\nFor comparison, the original matrix-parameter case on Angular 22.1.4 also required **4 requests at 256 MiB** and **10 requests at 512 MiB** with 100 links.\n\nAll failures were V8 heap OOMs:\n\n```text\nOOMKilled=false\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\n \nhttps://github.com/SkyZeroZx/angular-router-ssr-oom-lab/tree/query-param-oom-angular-22.2.0","author":{"url":"https://github.com/SkyZeroZx","@type":"Person","name":"SkyZeroZx"},"datePublished":"2026-09-24T06:08:49Z","url":"https://github.com/angular/angular/issues/70908"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ad6d592f-814c-f817-5dd0-eeaaa260188e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDCE8:26CF6F:6D2F50:9A078A:6AFDD11D
html-safe-nonce44ae13c882c97fd29dab161d80d4746a92b3acc4356ade87b6d81086fa7f4a5a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0U4OjI2Q0Y2Rjo2RDJGNTA6OUEwNzhBOjZBRkREMTFEIiwidmlzaXRvcl9pZCI6IjY2ODA0MTcyMzI3NTc1OTkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3083420cd58bf6b68c0175a8887f15e79da29ea8cb83bf24da1ef572a3cd5438
hovercard-subject-tagissue:5563939304
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/70908/issue_layout
twitter:imagehttps://opengraph.githubassets.com/26d11300ad6dbedc5270d0bbf6d6bc69f43ff6ba8cae055f993b541a88ba3e7e/angular/angular/issues/70908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/26d11300ad6dbedc5270d0bbf6d6bc69f43ff6ba8cae055f993b541a88ba3e7e/angular/angular/issues/70908
og:image:altWhich @angular/* package(s) are the source of the bug? router Is this a regression? No Description #70717 fixed the numeric matrix-parameter case from #70716, but query parameters still use regular...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSkyZeroZx
hostnamegithub.com
expected-hostnamegithub.com
None26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
release68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/70908#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F70908
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%2Fangular%2Fangular%2Fissues%2F70908
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/70908
Reloadhttps://github.com/angular/angular/issues/70908
Reloadhttps://github.com/angular/angular/issues/70908
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues833 (833)https://github.com/angular/angular/issues
Pull requests126 (126)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/70908
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/70908
#70953https://github.com/angular/angular/pull/70953
Angular Router numeric query parameters can exhaust memory during SSRhttps://github.com/angular/angular/issues/70908#top
#70953https://github.com/angular/angular/pull/70953
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 24, 2026https://github.com/angular/angular/issues/70908#issue-5563939304
#70717https://github.com/angular/angular/pull/70717
#70716https://github.com/angular/angular/issues/70716
https://github.com/SkyZeroZx/angular-router-ssr-oom-lab/tree/query-param-oom-angular-22.2.0https://github.com/SkyZeroZx/angular-router-ssr-oom-lab/tree/query-param-oom-angular-22.2.0
Nexthttps://github.com/angular/angular/issues/70908?timeline_page=1
angular-robothttps://github.com/apps/angular-robot
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Sep 24, 2026https://github.com/angular/angular/issues/70908#event-31732714949
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Sep 24, 2026https://github.com/angular/angular/issues/70908#event-31732716273
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 24, 2026https://github.com/angular/angular/issues/70908#event-31732825059
fix(router): avoid dense elements allocation for query params in crea…https://github.com/SkyZeroZx/angular/commit/8e13a81a940247db4a37c0856f1212f934ef7646
8e13a81https://github.com/SkyZeroZx/angular/commit/8e13a81a940247db4a37c0856f1212f934ef7646
fix(router): avoid dense elements allocation for query params in crea…https://github.com/SkyZeroZx/angular/commit/d9f340f044fb9ad1444e36a9ac3d3d22e00d141c
d9f340fhttps://github.com/SkyZeroZx/angular/commit/d9f340f044fb9ad1444e36a9ac3d3d22e00d141c
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 24, 2026https://github.com/angular/angular/issues/70908#issuecomment-5820274447
#70716https://github.com/angular/angular/issues/70716
#70717https://github.com/angular/angular/pull/70717
Angular Router numeric matrix parameters can exhaust memory during SSR #70716https://github.com/angular/angular/issues/70716
fix(router): avoid dense elements allocation for numeric URL keys #70717https://github.com/angular/angular/pull/70717
atscotthttps://github.com/atscott
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Sep 24, 2026https://github.com/angular/angular/issues/70908#event-31782632879
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 24, 2026https://github.com/angular/angular/issues/70908#issuecomment-5820404847
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31858699386
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/atscott/angular/commit/95cdfcd00ce32076ac6959f60e8dcd19a08bb641
95cdfcdhttps://github.com/atscott/angular/commit/95cdfcd00ce32076ac6959f60e8dcd19a08bb641
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5838079894
#70953https://github.com/angular/angular/pull/70953
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31859089431
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5838227074
#70953https://github.com/angular/angular/pull/70953
Baymard recommends 50–150 products per listing on desktophttps://baymard.com/research-articles/number-of-items-loaded-by-default
Shopify uses 10, 20, or 50 products per page as normal exampleshttps://www.shopify.com/blog/pagination-seo
Web Almanac 2025 reports a median of 43 internal links on desktop pageshttps://almanac.httparchive.org/en/2025/seo
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31860363508
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/atscott/angular/commit/4d544ae89e1bd80db8cb17d8d243a5c874a1c751
4d544aehttps://github.com/atscott/angular/commit/4d544ae89e1bd80db8cb17d8d243a5c874a1c751
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5838492442
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5838546659
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5839768664
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5840454399
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5840628070
#70953https://github.com/angular/angular/pull/70953
89d47d8https://github.com/angular/angular/commit/89d47d814de1e57c0b64ff1167ce9f86c518c670
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5840732755
https://github.com/atscott
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#issuecomment-5840778088
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31871390179
feat(router): support functions in queryParamsHandlinghttps://github.com/atscott/angular/commit/81792d81d53b209db34c293533943b71caa3b615
81792d8https://github.com/atscott/angular/commit/81792d81d53b209db34c293533943b71caa3b615
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#70953https://github.com/angular/angular/pull/70953
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31871853489
atscotthttps://github.com/atscott
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31871855178
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/angular/angular/commit/14793bfe4b44a36ed4b7e49a60458ec711c2b41a
14793bfhttps://github.com/angular/angular/commit/14793bfe4b44a36ed4b7e49a60458ec711c2b41a
angular-robothttps://github.com/angular-robot
on Sep 25, 2026https://github.com/angular/angular/issues/70908#event-31871861735
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/angular-robot/angular/commit/319a3c4f3268f4f96ac4acdbb118737d2261e0be
319a3c4https://github.com/angular-robot/angular/commit/319a3c4f3268f4f96ac4acdbb118737d2261e0be
atscotthttps://github.com/atscott
on Sep 26, 2026https://github.com/angular/angular/issues/70908#event-31872043720
feat(router): support functions in queryParamsHandlinghttps://github.com/atscott/angular/commit/a9270b0f28fc6911d04b622477765ed7d12b72a4
a9270b0https://github.com/atscott/angular/commit/a9270b0f28fc6911d04b622477765ed7d12b72a4
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/atscott/angular/commit/1739fb56d7fc93881a6ec3da9964a4433cd4883b
1739fb5https://github.com/atscott/angular/commit/1739fb56d7fc93881a6ec3da9964a4433cd4883b
perf(router): do not retain UrlTree instances in RouterLinkhttps://github.com/angular/angular/commit/a131f77d92808ad5c2f3fa4dc6fde36825f12c5a
a131f77https://github.com/angular/angular/commit/a131f77d92808ad5c2f3fa4dc6fde36825f12c5a
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Sep 30, 2026https://github.com/angular/angular/issues/70908#issuecomment-5919405818
@atscotthttps://github.com/atscott
GHSA-57xq-rjx2-v5xhhttps://github.com/angular/angular/security/advisories/GHSA-57xq-rjx2-v5xh
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 1, 2026https://github.com/angular/angular/issues/70908#issuecomment-6551025924
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 1, 2026https://github.com/angular/angular/issues/70908#event-34805121895
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/70908
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/70908
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.