Skip to content

fs: avoid computing time coefficient constants in runtime - #58728

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
LiviaMedeiros:fs-coefficient-no-runtime-pow
Jun 18, 2025
Merged

fs: avoid computing time coefficient constants in runtime#58728
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
LiviaMedeiros:fs-coefficient-no-runtime-pow

Conversation

@LiviaMedeiros

Copy link
Copy Markdown
Member

Fixes: #587261

These constants can be precomputed.

Footnotes

  1. even though it's not a Node.js bug

@nodejs-github-botnodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Jun 16, 2025
@codecov

codecovBot commented Jun 16, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.13%. Comparing base (d6dade5) to head (12f5b70).
Report is 9 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #58728 +/- ##
=======================================
Coverage 90.12% 90.13% =======================================
Files 637 637 Lines 188121 188121 Branches 36892 36891 -1 =======================================
+ Hits 169552 169557 +5 + Misses 11313 11311 -2 + Partials 7256 7253 -3 
Files with missing linesCoverage Δ
lib/internal/fs/utils.js99.69% <100.00%> (ø)

... and 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@LiviaMedeirosLiviaMedeiros added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Jun 16, 2025
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 16, 2025
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@juanarboljuanarbol added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 17, 2025
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 18, 2025
@nodejs-github-bot
nodejs-github-bot merged commit f2e99c5 into nodejs:mainJun 18, 2025
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in f2e99c5

RafaelGSS pushed a commit that referenced this pull request Jun 23, 2025
PR-URL: #58728Fixes: #58726
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Jul 21, 2025
PR-URL: #58728Fixes: #58726
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
aduh95 pushed a commit that referenced this pull request Jul 24, 2025
PR-URL: #58728Fixes: #58726
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs: non-bigint stat can give 0.20566138856% bigger results

6 participants

@LiviaMedeiros@nodejs-github-bot@lpinca@targos@Ethan-Arrowood@juanarbol