René's URL Explorer Experiment


Title: lib: use utf8 fast path for streaming TextDecoder by ChALkeR · Pull Request #61549 · nodejs/node · GitHub

Open Graph Title: lib: use utf8 fast path for streaming TextDecoder by ChALkeR · Pull Request #61549 · nodejs/node

X Title: lib: use utf8 fast path for streaming TextDecoder by ChALkeR · Pull Request #61549 · nodejs/node

Description: Tracking: #61041 A continuation of #61409 This is based on the logic in https://github.com/ExodusOSS/bytes Unifies stream and non-stream codepath for UTF-8 both for intl and no-intl variants. Previously, ICU and string_decoder were used on with-intl and without-intl variants correspondingly for streaming UTF-8 implementation Instead, just do minor quick slices on JS side and use the single stateless native decoding API to be fast on large chunks This: Improves streaming UTF-8 TextDecoder performance Brings streaming fatal UTF-8 TextDecoder support to without-intl builds Unifies the logic, using a single codepath everywhere for UTF-8 Benchmarks Previously: #61131 Non-chunked, 25.5.0 Test Size Throughput Mean Time Latin lipsum (ASCII) 84.902 KiB 36.69 GiB/s 0.002 ms Arabic lipsum 79.771 KiB 2.03 GiB/s 0.037 ms Chinese lipsum 68.203 KiB 4.10 GiB/s 0.016 ms Arabic + 2 * ASCII 249.577 KiB 2.72 GiB/s 0.092 ms Non-ASCII char + ASCII 84.905 KiB 3.84 GiB/s 0.024 ms Non-chunked, PR Test Size Throughput Mean Time Latin lipsum (ASCII) 84.902 KiB 36.19 GiB/s 0.002 ms Arabic lipsum 79.771 KiB 2.02 GiB/s 0.038 ms Chinese lipsum 68.203 KiB 4.00 GiB/s 0.016 ms Arabic + 2 * ASCII 249.577 KiB 3.32 GiB/s 0.075 ms Non-ASCII char + ASCII 84.905 KiB 4.71 GiB/s 0.022 ms (should not be affected) Chunked (1000 byte chunks), 25.5.0 Test Size Throughput Mean Time Latin lipsum (ASCII) 84.902 KiB 1.31 GiB/s 0.062 ms Arabic lipsum 79.771 KiB 0.90 GiB/s 0.084 ms Chinese lipsum 68.203 KiB 0.99 GiB/s 0.066 ms Arabic + 2 * ASCII 249.577 KiB 1.14 GiB/s 0.209 ms Non-ASCII char + ASCII 84.905 KiB 1.31 GiB/s 0.062 ms Chunked (1000 byte chunks), PR Test Size Throughput Mean Time Latin lipsum (ASCII) 84.902 KiB 7.45 GiB/s 0.011 ms Arabic lipsum 79.771 KiB 1.24 GiB/s 0.062 ms Chinese lipsum 68.203 KiB 1.54 GiB/s 0.042 ms Arabic + 2 * ASCII 249.577 KiB 2.67 GiB/s 0.091 ms Non-ASCII char + ASCII 84.905 KiB 7.26 GiB/s 0.011 ms The benchmark creates about ~70-256 chunks on each test The improvement is significant

Open Graph Description: Tracking: #61041 A continuation of #61409 This is based on the logic in https://github.com/ExodusOSS/bytes Unifies stream and non-stream codepath for UTF-8 both for intl and no-intl variants. Previ...

X Description: Tracking: #61041 A continuation of #61409 This is based on the logic in https://github.com/ExodusOSS/bytes Unifies stream and non-stream codepath for UTF-8 both for intl and no-intl variants. Previ...

Opengraph URL: https://github.com/nodejs/node/pull/61549

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0cf63d1e-7ce9-77c4-473f-23f7da734041
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD564:36296E:8753EA:C29287:6A4CE6E2
html-safe-noncef911e4f30106a6e5939f474e946adf459c0f80e0bfb66135009e3fbb85cc2f8d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTY0OjM2Mjk2RTo4NzUzRUE6QzI5Mjg3OjZBNENFNkUyIiwidmlzaXRvcl9pZCI6Ijg2MjI5OTI1NzA1MTM2ODAwOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9d79546c695511f52c5ab8edd2f40d1d2793d75ad2820c7a8460bafe00a8a8db
hovercard-subject-tagpull_request:3215682222
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/61549/files
twitter:imagehttps://avatars.githubusercontent.com/u/291301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/291301?s=400&v=4
og:image:altTracking: #61041 A continuation of #61409 This is based on the logic in https://github.com/ExodusOSS/bytes Unifies stream and non-stream codepath for UTF-8 both for intl and no-intl variants. Previ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec5a57f04eeb310f57c73fd6d751d957e2ca27ed2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/61549/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61549%2Ffiles
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fnodejs%2Fnode%2Fpull%2F61549%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/61549/files
Reloadhttps://github.com/nodejs/node/pull/61549/files
Reloadhttps://github.com/nodejs/node/pull/61549/files
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 961 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
ChALkeRhttps://github.com/ChALkeR
nodejs:mainhttps://github.com/nodejs/node/tree/main
ChALkeR:chalker/decoder/unify/2https://github.com/ChALkeR/io.js/tree/chalker/decoder/unify/2
Conversation 20 https://github.com/nodejs/node/pull/61549
Commits 2 https://github.com/nodejs/node/pull/61549/commits
Checks 62 https://github.com/nodejs/node/pull/61549/checks
Files changed https://github.com/nodejs/node/pull/61549/files
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
lib: use utf8 fast path for streaming TextDecoder https://github.com/nodejs/node/pull/61549/files#top
Show all changes 2 commits https://github.com/nodejs/node/pull/61549/files
e9e9252 lib: use utf8 fast path for streaming TextDecoder ChALkeR Jan 27, 2026 https://github.com/nodejs/node/pull/61549/commits/e9e92526679b486f31fc4bd73433a331a922b0e9
1559954 benchmark: add streaming TextDecoder benchmark ChALkeR Jan 27, 2026 https://github.com/nodejs/node/pull/61549/commits/155995438c2a1ded915050365d88cc93d06d3f07
Clear filters https://github.com/nodejs/node/pull/61549/files
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
text-decoder-stream.js https://github.com/nodejs/node/pull/61549/files#diff-27e363c7b1b65fdefe441ca6be241189706c3b765e01dd44f1dbc4b71c0a62c2
encoding.js https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
util.js https://github.com/nodejs/node/pull/61549/files#diff-c1842b7070d998795ee094057f19ab242d791a346086eb517f991fec5c3cc631
test-bootstrap-modules.js https://github.com/nodejs/node/pull/61549/files#diff-eeda4d549f43051fb9ffbc8286e838ebfd607bae681dfc55a76679e6705124f9
test-whatwg-encoding-custom-textdecoder.js https://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
benchmark/util/text-decoder-stream.jshttps://github.com/nodejs/node/pull/61549/files#diff-27e363c7b1b65fdefe441ca6be241189706c3b765e01dd44f1dbc4b71c0a62c2
View file https://github.com/ChALkeR/io.js/blob/155995438c2a1ded915050365d88cc93d06d3f07/benchmark/util/text-decoder-stream.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61549/{{ revealButtonHref }}
lib/internal/encoding.jshttps://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
View file https://github.com/ChALkeR/io.js/blob/155995438c2a1ded915050365d88cc93d06d3f07/lib/internal/encoding.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61549/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
https://github.com/nodejs/node/pull/61549/files#diff-bd5ca5b3bb337c44d0c11c2e0eaef432332dcdf6eaf65a6b4171a7b3380720a3
lib/internal/encoding/util.jshttps://github.com/nodejs/node/pull/61549/files#diff-c1842b7070d998795ee094057f19ab242d791a346086eb517f991fec5c3cc631
View file https://github.com/ChALkeR/io.js/blob/155995438c2a1ded915050365d88cc93d06d3f07/lib/internal/encoding/util.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61549/{{ revealButtonHref }}
test/parallel/test-bootstrap-modules.jshttps://github.com/nodejs/node/pull/61549/files#diff-eeda4d549f43051fb9ffbc8286e838ebfd607bae681dfc55a76679e6705124f9
View file https://github.com/ChALkeR/io.js/blob/155995438c2a1ded915050365d88cc93d06d3f07/test/parallel/test-bootstrap-modules.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61549/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61549/files#diff-eeda4d549f43051fb9ffbc8286e838ebfd607bae681dfc55a76679e6705124f9
https://github.com/nodejs/node/pull/61549/files#diff-eeda4d549f43051fb9ffbc8286e838ebfd607bae681dfc55a76679e6705124f9
test/parallel/test-whatwg-encoding-custom-textdecoder.jshttps://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
View file https://github.com/ChALkeR/io.js/blob/155995438c2a1ded915050365d88cc93d06d3f07/test/parallel/test-whatwg-encoding-custom-textdecoder.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61549/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
https://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
https://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
https://github.com/nodejs/node/pull/61549/files#diff-71e8365a3d63a9bc7c5228462bd4f9da275c7e3ce80c15d3bd5063008419c748
Please reload this pagehttps://github.com/nodejs/node/pull/61549/files
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.