diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-06-07 00:09:14 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-06-12 00:40:39 +0300 |
commit | bba9b008ef3095d346ed9a87140c81948476d9db (patch) | |
tree | 201ec5f9ad0d0b9e80f5f37b47f407de90e594bd /src/node_file.h | |
parent | bafd5444abc03f093b98160dfff1866163e52e8d (diff) |
src: reduce FileHandle size by reordering fields
PR-URL: https://github.com/nodejs/node/pull/33784
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_file.h')
-rw-r--r-- | src/node_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file.h b/src/node_file.h index 39c9034f669..ad493bd944c 100644 --- a/src/node_file.h +++ b/src/node_file.h @@ -319,10 +319,10 @@ class FileHandle final : public AsyncWrap, public StreamBase { int fd_; bool closing_ = false; bool closed_ = false; + bool reading_ = false; int64_t read_offset_ = -1; int64_t read_length_ = -1; - bool reading_ = false; BaseObjectPtr<FileHandleReadWrap> current_read_; BaseObjectPtr<BindingData> binding_data_; |