Skip to content

Commit 85f2c1f

Browse files
committed
fs: more misc optimizations
The main focus of this commit is to: * Avoid options object copying where possible * Use V8's object cloning only for default options objects where we are in control of the object's configuration since the object clone will also copy properties' configuration, frozen/sealed state, etc. * Refactor writeFile*()/appendFile*() to reuse shared logic without the redundant argument checking and to reuse FSReqWrap instances more
1 parent 22345d4 commit 85f2c1f

File tree

1 file changed

+173
-118
lines changed

1 file changed

+173
-118
lines changed

0 commit comments

Comments
 (0)