René's URL Explorer Experiment


Title: lib: optimize styleText when validateStream is false by RafaelGSS · Pull Request #61792 · nodejs/node · GitHub

Open Graph Title: lib: optimize styleText when validateStream is false by RafaelGSS · Pull Request #61792 · nodejs/node

X Title: lib: optimize styleText when validateStream is false by RafaelGSS · Pull Request #61792 · nodejs/node

Description: This commit optimizes the util.styleText when validateStream is false ➜ node2 git:(27ec4315b1f) ✗ node benchmark/compare.js --old ./node --new ./node-optimize --filter style-text util > style-text.out [00:00:30|% 100| 1/1 files | 60/60 runs | 24/24 configs]: Done % ➜ node2 git:(27ec4315b1f) ✗ node-benchmark-compare style-text.out confidence improvement accuracy (*) (**) (***) util/style-text.js n=1000 validateStream=0 format='invalid' messageType='boolean' 3.10 % ±9.95% ±13.24% ±17.23% util/style-text.js n=1000 validateStream=0 format='invalid' messageType='invalid' -8.84 % ±10.73% ±14.29% ±18.61% util/style-text.js n=1000 validateStream=0 format='invalid' messageType='number' -8.78 % ±9.00% ±12.00% ±15.67% util/style-text.js n=1000 validateStream=0 format='invalid' messageType='string' -9.09 % ±9.55% ±12.71% ±16.55% util/style-text.js n=1000 validateStream=0 format='italic' messageType='boolean' -4.34 % ±10.50% ±13.98% ±18.20% util/style-text.js n=1000 validateStream=0 format='italic' messageType='invalid' -0.16 % ±11.98% ±15.95% ±20.75% util/style-text.js n=1000 validateStream=0 format='italic' messageType='number' -4.44 % ±10.75% ±14.31% ±18.62% util/style-text.js n=1000 validateStream=0 format='italic' messageType='string' *** 572.71 % ±129.86% ±174.99% ±232.29% util/style-text.js n=1000 validateStream=0 format='red' messageType='boolean' 4.81 % ±11.07% ±14.73% ±19.17% util/style-text.js n=1000 validateStream=0 format='red' messageType='invalid' * 12.15 % ±10.44% ±13.91% ±18.14% util/style-text.js n=1000 validateStream=0 format='red' messageType='number' 4.98 % ±8.31% ±11.07% ±14.44% util/style-text.js n=1000 validateStream=0 format='red' messageType='string' *** 602.97 % ±124.23% ±167.42% ±222.24% util/style-text.js n=1000 validateStream=1 format='invalid' messageType='boolean' 1.49 % ±5.91% ±7.87% ±10.24% util/style-text.js n=1000 validateStream=1 format='invalid' messageType='invalid' -9.42 % ±9.62% ±12.82% ±16.73% util/style-text.js n=1000 validateStream=1 format='invalid' messageType='number' -4.64 % ±9.81% ±13.06% ±17.02% util/style-text.js n=1000 validateStream=1 format='invalid' messageType='string' 9.27 % ±10.24% ±13.65% ±17.83% util/style-text.js n=1000 validateStream=1 format='italic' messageType='boolean' 6.04 % ±9.99% ±13.30% ±17.34% util/style-text.js n=1000 validateStream=1 format='italic' messageType='invalid' -3.24 % ±9.79% ±13.04% ±16.98% util/style-text.js n=1000 validateStream=1 format='italic' messageType='number' -1.61 % ±9.45% ±12.58% ±16.38% util/style-text.js n=1000 validateStream=1 format='italic' messageType='string' 2.10 % ±9.03% ±12.05% ±15.74% util/style-text.js n=1000 validateStream=1 format='red' messageType='boolean' -0.12 % ±9.65% ±12.84% ±16.71% util/style-text.js n=1000 validateStream=1 format='red' messageType='invalid' -5.44 % ±11.00% ±14.64% ±19.07% util/style-text.js n=1000 validateStream=1 format='red' messageType='number' -1.35 % ±8.12% ±10.81% ±14.08% util/style-text.js n=1000 validateStream=1 format='red' messageType='string' * -7.68 % ±7.03% ±9.36% ±12.20% Be aware that when doing many comparisons the risk of a false-positive result increases. In this case, there are 24 comparisons, you can thus expect the following amount of false-positive results: 1.20 false positives, when considering a 5% risk acceptance (*, **, ***), 0.24 false positives, when considering a 1% risk acceptance (**, ***), 0.02 false positives, when considering a 0.1% risk acceptance (***) We are investigating how we can further optimise it without changing the API drastically.

Open Graph Description: This commit optimizes the util.styleText when validateStream is false ➜ node2 git:(27ec4315b1f) ✗ node benchmark/compare.js --old ./node --new ./node-optimize --filter style-text util > style-...

X Description: This commit optimizes the util.styleText when validateStream is false ➜ node2 git:(27ec4315b1f) ✗ node benchmark/compare.js --old ./node --new ./node-optimize --filter style-text util > st...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2bb92b0b-ffc0-f82c-2bfe-82bbe913c97c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84AA:30A7B5:AA11D3:EDDFED:6A4CA049
html-safe-noncebab8c776aa795e4f6684235317ec64ad07407aff8af5dfa16e04d560d2a6f530
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEFBOjMwQTdCNTpBQTExRDM6RURERkVEOjZBNENBMDQ5IiwidmlzaXRvcl9pZCI6IjU0MDMzNzI3ODQ5MjIxNzM1MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace65359401c1ff8f8333590dc34d4e612721225e0a5e250e9eca0026ff714540a
hovercard-subject-tagpull_request:3277690701
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/61792/files
twitter:imagehttps://avatars.githubusercontent.com/u/26234614?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/26234614?s=400&v=4
og:image:altThis commit optimizes the util.styleText when validateStream is false ➜ node2 git:(27ec4315b1f) ✗ node benchmark/compare.js --old ./node --new ./node-optimize --filter style-text util > style-...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
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
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/61792/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61792%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%2F61792%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/61792/files
Reloadhttps://github.com/nodejs/node/pull/61792/files
Reloadhttps://github.com/nodejs/node/pull/61792/files
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/61792/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 964 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
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
RafaelGSS:optimize-style-texthttps://github.com/RafaelGSS/node/tree/optimize-style-text
Conversation 17 https://github.com/nodejs/node/pull/61792
Commits 3 https://github.com/nodejs/node/pull/61792/commits
Checks 46 https://github.com/nodejs/node/pull/61792/checks
Files changed 2 https://github.com/nodejs/node/pull/61792/files
lib: optimize styleText when validateStream is false https://github.com/nodejs/node/pull/61792/files#top
Show all changes 3 commits https://github.com/nodejs/node/pull/61792/files
5f9c663 lib: optimize styleText when validateStream is false RafaelGSS Feb 12, 2026 https://github.com/nodejs/node/pull/61792/commits/5f9c6634b083990e5f3b9e2e59bcf5991bda693a
63d2996 fixup! lib: optimize styleText when validateStream is false RafaelGSS Feb 16, 2026 https://github.com/nodejs/node/pull/61792/commits/63d2996e63ab846b04badef6290687ecff651e83
9f8c2b4 fixup! fixup! lib: optimize styleText when validateStream is false RafaelGSS Feb 17, 2026 https://github.com/nodejs/node/pull/61792/commits/9f8c2b4389a2fc900a317fe888760aee76cdb4da
Clear filters https://github.com/nodejs/node/pull/61792/files
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
util.js https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
test-util-styletext.js https://github.com/nodejs/node/pull/61792/files#diff-6cef1b8000122366450934e8635a934fd715b2799405590119cb1480b24b3a08
lib/util.jshttps://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
View file https://github.com/RafaelGSS/node/blob/9f8c2b4389a2fc900a317fe888760aee76cdb4da/lib/util.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61792/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
gurgundayhttps://github.com/gurgunday
Feb 18, 2026https://github.com/nodejs/node/pull/61792/files#r2824249433
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
RafaelGSShttps://github.com/RafaelGSS
Feb 19, 2026https://github.com/nodejs/node/pull/61792/files#r2825087433
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
Please reload this pagehttps://github.com/nodejs/node/pull/61792/files
https://github.com/nodejs/node/pull/61792/files#diff-3fb720f70ea34fb2975fd6c38ac4b6b6131373be2abfa4760dfaae8a25daaee2
test/parallel/test-util-styletext.jshttps://github.com/nodejs/node/pull/61792/files#diff-6cef1b8000122366450934e8635a934fd715b2799405590119cb1480b24b3a08
View file https://github.com/RafaelGSS/node/blob/9f8c2b4389a2fc900a317fe888760aee76cdb4da/test/parallel/test-util-styletext.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/61792/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/61792/files#diff-6cef1b8000122366450934e8635a934fd715b2799405590119cb1480b24b3a08
https://github.com/nodejs/node/pull/61792/files#diff-6cef1b8000122366450934e8635a934fd715b2799405590119cb1480b24b3a08
Please reload this pagehttps://github.com/nodejs/node/pull/61792/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.