Skip to content

Commit

Permalink
Refactor: reduce file reading high water mark to match Node.js v22 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed May 10, 2024
1 parent 6171249 commit 6b9a0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polyfill/fsPoly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ArrayPoly from './arrayPoly.js';
export type FsWalkCallback = (increment: number) => void;

export default class FsPoly {
static readonly FILE_READING_CHUNK_SIZE = 1024 * 1024; // 1MiB
static readonly FILE_READING_CHUNK_SIZE = 64 * 1024; // 64KiB, Node.js v22 default

// Assume that all drives we're reading from or writing to were already mounted at startup
public static readonly DRIVES = nodeDiskInfo.getDiskInfoSync();
Expand Down

0 comments on commit 6b9a0cc

Please sign in to comment.