Skip to content

Commit

Permalink
Reorder msgpack_packer struct
Browse files Browse the repository at this point in the history
Reduce its size from 224 to 216B.
  • Loading branch information
byroot committed Nov 11, 2024
1 parent 9bac145 commit b9fd86f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/msgpack/packer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ typedef struct msgpack_packer_t msgpack_packer_t;
struct msgpack_packer_t {
msgpack_buffer_t buffer;

bool compatibility_mode;
bool has_bigint_ext_type;
bool has_symbol_ext_type;

ID to_msgpack_method;
VALUE to_msgpack_arg;

VALUE buffer_ref;

bool compatibility_mode;
bool has_bigint_ext_type;
bool has_symbol_ext_type;

/* options */
bool comaptibility_mode;
msgpack_packer_ext_registry_t ext_registry;
Expand Down

0 comments on commit b9fd86f

Please sign in to comment.