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 <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
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)