Skip to content

Commit 07c21d0

Browse files
addaleaxcodebytere
authored andcommitted
src: reduce FileHandle size by reordering fields
PR-URL: #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>
1 parent 83aaad7 commit 07c21d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ class FileHandle final : public AsyncWrap, public StreamBase {
319319
int fd_;
320320
bool closing_ = false;
321321
bool closed_ = false;
322+
bool reading_ = false;
322323
int64_t read_offset_ = -1;
323324
int64_t read_length_ = -1;
324325

325-
bool reading_ = false;
326326
BaseObjectPtr<FileHandleReadWrap> current_read_;
327327

328328
BaseObjectPtr<BindingData> binding_data_;

0 commit comments

Comments
 (0)