You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -526,7 +526,7 @@ async function readFileHandle(filehandle, options) {
526
526
527
527
if(size>maxFileSize){
528
528
console.warn(
529
-
`Warning: File size (${size} bytes) exceeds the supported limit of ${maxFileSize} bytes. Consider using chunked reading.`,
529
+
`Warning: Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
0 commit comments