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
@@ -531,7 +531,7 @@ async function readFileHandle(filehandle, options) {
531
531
532
532
if(size>maxFileSize){
533
533
console.warn(
534
-
`Warning: File size (${size} bytes) exceeds the supported limit of ${maxFileSize} bytes. Consider using chunked reading.`,
534
+
`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