René's URL Explorer Experiment


Title: Repeated sparse LU solves are 2 to 3 times slower in Node.js and Chromium · Issue #136 · FEAScript/FEAScript-core · GitHub

Open Graph Title: Repeated sparse LU solves are 2 to 3 times slower in Node.js and Chromium · Issue #136 · FEAScript/FEAScript-core

X Title: Repeated sparse LU solves are 2 to 3 times slower in Node.js and Chromium · Issue #136 · FEAScript/FEAScript-core

Description: Description In Node.js and Chromium, every sparse LU solve (lusolve) after the first one in a process is 2 to 3 times slower than the first. Firefox is not affected. The solution is the same; only the time changes. From the 0.4.0 benchma...

Open Graph Description: Description In Node.js and Chromium, every sparse LU solve (lusolve) after the first one in a process is 2 to 3 times slower than the first. Firefox is not affected. The solution is the same; only ...

X Description: Description In Node.js and Chromium, every sparse LU solve (lusolve) after the first one in a process is 2 to 3 times slower than the first. Firefox is not affected. The solution is the same; only ...

Opengraph URL: https://github.com/FEAScript/FEAScript-core/issues/136

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Repeated sparse LU solves are 2 to 3 times slower in Node.js and Chromium","articleBody":"### Description\n\nIn Node.js and Chromium, every sparse LU solve (`lusolve`) after the first one in a process is 2 to 3 times slower than the first. Firefox is not affected. The solution is the same; only the time changes.\n\nFrom the 0.4.0 benchmarks on the AMD Ryzen 5 9600X ([FEAScript-benchmark](https://github.com/FEAScript/FEAScript-benchmark)):\n\n| Lid-driven cavity, 64x64 | First solve | Repeated solve |\n|---|---|---|\n| Node.js 18 | 9.6 s | 26.4 s |\n| Chromium 156 | 7.8 s | 21.9 s |\n| Firefox 159 | 217.6 s | 223.0 s |\n\nThe heat conduction cases with `lusolve` show the same pattern, with a smaller factor (about 1.7).\n\nThis affects:\n- **Nonlinear problems:** Newton-Raphson factors the matrix on every iteration, so every iteration after the first runs at the slow speed.\n- **Pages that solve again:** a parameter change or a sweep in the same page runs at the slow speed every time after the first.\n\n### Cause\n\nThe inner loop of the mathjs sparse LU (`csSpsolve`) updates every entry with mathjs's generic `subtract(x[i], multiply(gvalues[p], x[j]))`. The same `multiply` is also called with whole sparse matrices earlier in the factorization (`csAmd`). On the first solve V8 inlines the number case into the loop. On later solves the loop calls through mathjs's typed-function dispatcher on every entry. A V8 CPU profile shows the extra time in `csSpsolve` and `multiplyNumber`. Forcing garbage collection between solves, or passing the matrix in packed arrays, makes no difference.\n\nWith plain arithmetic in those lines of the bundled mathjs (`x[i] = x[i] - gvalues[p] * x[j]`, and the same for the division), every solve runs at the speed of the first, and the solution is the same bit for bit. Cavity 32x32 on the 0.4.0 bundle: 1.4 s first and 3.2 s repeated before; 1.4 s and 1.3 s after. 64x64: 10.9 s for both.\n\nReported to mathjs: josdejong/mathjs#3792. mathjs 15.2.0 still has the same loop, and plain arithmetic makes its `slu` 2.5 to 9 times faster there.\n\n### Fix\n\nIn 0.4.0: a rollup step rewrites the two lines of mathjs's `csSpsolve` in the bundles to plain arithmetic, and fails the build if they are not found. Only `dist/` gets the fix, not source-mode loading. Once mathjs fixes josdejong/mathjs#3792, upgrade mathjs and remove the step.\n\nStill to do: rerun the repeated-solve benchmarks on both machines, and check whether the first solves in Firefox change.\n","author":{"url":"https://github.com/nikoscham","@type":"Person","name":"nikoscham"},"datePublished":"2026-11-11T01:19:00Z","url":"https://github.com/FEAScript/FEAScript-core/issues/136"}

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:52343083-b8d8-bb7e-ec7d-ddddc76d8662
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9EB8:2ED6B1:30D579:445C41:6B005C06
html-safe-noncea8d6c3fb4b408a02b80ddf62c99035e96f95e3bdd24e74c58e35d14dc2f67b2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUI4OjJFRDZCMTozMEQ1Nzk6NDQ1QzQxOjZCMDA1QzA2IiwidmlzaXRvcl9pZCI6IjM3MzM1ODAwMTY2ODQ5MTU3MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac84691e4920da1d2b2fa5c972eda7c3eb216470f94c9be18407b73c92942354bd
hovercard-subject-tagissue:6319444113
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/FEAScript/FEAScript-core/136/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9a9368fb838c5bec5110d3be5da3104f353e17ff2426f406f96bd3ec3b686987/FEAScript/FEAScript-core/issues/136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9a9368fb838c5bec5110d3be5da3104f353e17ff2426f406f96bd3ec3b686987/FEAScript/FEAScript-core/issues/136
og:image:altDescription In Node.js and Chromium, every sparse LU solve (lusolve) after the first one in a process is 2 to 3 times slower than the first. Firefox is not affected. The solution is the same; only ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenikoscham
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/FEAScript/FEAScript-core git https://github.com/FEAScript/FEAScript-core.git
octolytics-dimension-user_id153191005
octolytics-dimension-user_loginFEAScript
octolytics-dimension-repository_id665162813
octolytics-dimension-repository_nwoFEAScript/FEAScript-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id665162813
octolytics-dimension-repository_network_root_nwoFEAScript/FEAScript-core
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/FEAScript/FEAScript-core/issues/136#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFEAScript%2FFEAScript-core%2Fissues%2F136
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%2FFEAScript%2FFEAScript-core%2Fissues%2F136
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=FEAScript%2FFEAScript-core
Reloadhttps://github.com/FEAScript/FEAScript-core/issues/136
Reloadhttps://github.com/FEAScript/FEAScript-core/issues/136
Reloadhttps://github.com/FEAScript/FEAScript-core/issues/136
FEAScripthttps://github.com/FEAScript
FEAScript-corehttps://github.com/FEAScript/FEAScript-core
Codehttps://github.com/FEAScript/FEAScript-core
Issues43 (43)https://github.com/FEAScript/FEAScript-core/issues
Pull requestshttps://github.com/FEAScript/FEAScript-core/pulls
Discussionshttps://github.com/FEAScript/FEAScript-core/discussions
Actionshttps://github.com/FEAScript/FEAScript-core/actions
Security and qualityhttps://github.com/FEAScript/FEAScript-core/security
Insightshttps://github.com/FEAScript/FEAScript-core/insights
https://github.com/FEAScript/FEAScript-core
New issuehttps://github.com/login?return_to=https://github.com/FEAScript/FEAScript-core/issues/136
New issuehttps://github.com/login?return_to=https://github.com/FEAScript/FEAScript-core/issues/136
Repeated sparse LU solves are 2 to 3 times slower in Node.js and Chromiumhttps://github.com/FEAScript/FEAScript-core/issues/136#top
https://github.com/nikoscham
bugSomething isn't workinghttps://github.com/FEAScript/FEAScript-core/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/nikoscham
nikoschamhttps://github.com/nikoscham
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#issue-6319444113
FEAScript-benchmarkhttps://github.com/FEAScript/FEAScript-benchmark
josdejong/mathjs#3792https://github.com/josdejong/mathjs/issues/3792
josdejong/mathjs#3792https://github.com/josdejong/mathjs/issues/3792
nikoschamhttps://github.com/nikoscham
bugSomething isn't workinghttps://github.com/FEAScript/FEAScript-core/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#event-35748951446
nikoschamhttps://github.com/nikoscham
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#event-35820727873
Use plain arithmetic in the mathjs sparse LU inner loop of the bundleshttps://github.com/FEAScript/FEAScript-core/commit/af82e09c3ff46250a03172a3571af61dc8bac7ce
https://docs.github.com/articles/closing-issues-via-commit-messages
af82e09https://github.com/FEAScript/FEAScript-core/commit/af82e09c3ff46250a03172a3571af61dc8bac7ce
https://github.com/nikoscham
nikoschamhttps://github.com/nikoscham
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#issuecomment-6802407231
af82e09https://github.com/FEAScript/FEAScript-core/commit/af82e09
josdejong/mathjs#3792https://github.com/josdejong/mathjs/issues/3792
nikoschamhttps://github.com/nikoscham
completedhttps://github.com/FEAScript/FEAScript-core/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#event-35824137051
nikoschamhttps://github.com/nikoscham
on Nov 11, 2026https://github.com/FEAScript/FEAScript-core/issues/136#event-35838604333
Sign up for freehttps://github.com/signup?return_to=https://github.com/FEAScript/FEAScript-core/issues/136
Sign in to commenthttps://github.com/login?return_to=https://github.com/FEAScript/FEAScript-core/issues/136
nikoschamhttps://github.com/nikoscham
bugSomething isn't workinghttps://github.com/FEAScript/FEAScript-core/issues?q=state%3Aopen%20label%3A%22bug%22
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.