Skip to content

Commit 297d3db

Browse files
committed
fixup! fs: add c++ fast path for writeFileSync utf8
1 parent 5d67aa1 commit 297d3db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/fs/bench-writeFileSync.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ tmpdir.refresh();
88
const bench = common.createBenchmark(main, {
99
encoding: ['utf8'],
1010
hasFileDescriptor: ['true', 'false'],
11-
stringLength: [1024, 4096, 65535],//, 1024 * 1024],
11+
stringLength: [1024, 4096, 65535],
12+
// stringLength: [1024, 4096, 65535, 1024 * 1024],
1213
n: [1e3],
1314
});
1415

src/node_file.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,6 @@ static void WriteFileUtf8(const FunctionCallbackInfo<Value>& args) {
25372537
FS_SYNC_TRACE_END(write);
25382538
}
25392539

2540-
25412540
/*
25422541
* Wrapper for read(2).
25432542
*

0 commit comments

Comments
 (0)