Skip to content

Commit

Permalink
src: reduce FileHandle size by reordering fields
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
addaleax authored and codebytere committed Jun 18, 2020
1 parent 83aaad7 commit 07c21d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit 07c21d0

Please sign in to comment.