Title: fs: createReadStream disregards setDefaultHighWaterMark · Issue #66937 · nodejs/node · GitHub
Open Graph Title: fs: createReadStream disregards setDefaultHighWaterMark · Issue #66937 · nodejs/node
X Title: fs: createReadStream disregards setDefaultHighWaterMark · Issue #66937 · nodejs/node
Description: Whats is wrong: I changed setDefaultHighWaterMark with defaulth value. readeble, writable and fs.createWriteStream so using value. but fs.createReadStream and filehandle.createReadStream still using 64KB Example for reproduce: const { Re...
Open Graph Description: Whats is wrong: I changed setDefaultHighWaterMark with defaulth value. readeble, writable and fs.createWriteStream so using value. but fs.createReadStream and filehandle.createReadStream still usin...
X Description: Whats is wrong: I changed setDefaultHighWaterMark with defaulth value. readeble, writable and fs.createWriteStream so using value. but fs.createReadStream and filehandle.createReadStream still usin...
Opengraph URL: https://github.com/nodejs/node/issues/66937
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs: createReadStream disregards setDefaultHighWaterMark","articleBody":"Whats is wrong: I changed setDefaultHighWaterMark with defaulth value. readeble, writable and fs.createWriteStream so using value. but fs.createReadStream and filehandle.createReadStream still using 64KB\n\nExample for reproduce:\n\n```js\nconst { Readable, setDefaultHighWaterMark } = require('stream');\nconst fs = require('fs');\n\nsetDefaultHighWaterMark(false, 1024 * 1024);\n\nconsole.log(new Readable().readableHighWaterMark); // 1048576\nconsole.log(fs.createWriteStream('out.txt').writableHighWaterMark); // 1048576\nconsole.log(fs.createReadStream(__filename).readableHighWaterMark); // 65536\n```\n\nWhy: wrote 64KB constant to lib/internal/fs/streams.js file\n\nMy suggestion: \nWe could use getDefaultHighWaterMark(). But the default is 16KB on Windows, so fs reads would be slower.\nDo you think we should use the default only when the user changes it?\n\n\n","author":{"url":"https://github.com/mertcanaltin","@type":"Person","name":"mertcanaltin"},"datePublished":"2026-10-22T19:45:53Z","url":"https://github.com/nodejs/node/issues/66937"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c35cf0c0-02bb-4c6a-72af-f3993261a0dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98B0:7A60E:30F54C5:3ED07CB:6B01C9B0 |
| html-safe-nonce | 733727f2c5ded893858db0d43a09ba036658fba179f9225b9b42fe71fbabc1c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEIwOjdBNjBFOjMwRjU0QzU6M0VEMDdDQjo2QjAxQzlCMCIsInZpc2l0b3JfaWQiOiI3OTU3OTIyMDIxNTIwODIwNjU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7a16218c71bcd6706d335e7ba52d50ef7fa84719172b6c8d7f3b5db538891a17 |
| hovercard-subject-tag | issue:5986317268 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66937/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3eaef269608b2c7ac0a0ffbb57907f98bd43ead9ce38309f8a1613d46d8070fc/nodejs/node/issues/66937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3eaef269608b2c7ac0a0ffbb57907f98bd43ead9ce38309f8a1613d46d8070fc/nodejs/node/issues/66937 |
| og:image:alt | Whats is wrong: I changed setDefaultHighWaterMark with defaulth value. readeble, writable and fs.createWriteStream so using value. but fs.createReadStream and filehandle.createReadStream still usin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mertcanaltin |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width