Skip to content

Commit 3778272

Browse files
committed
Reorder msgpack_unpacker_t
Reduce its size from 264 to 256B.
1 parent 3d28793 commit 3778272

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ext/msgpack/unpacker.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,26 @@ struct msgpack_unpacker_stack_t {
5050
struct msgpack_unpacker_t {
5151
msgpack_buffer_t buffer;
5252
msgpack_unpacker_stack_t stack;
53-
unsigned int head_byte;
5453

5554
VALUE self;
5655
VALUE last_object;
5756

5857
VALUE reading_raw;
5958
size_t reading_raw_remaining;
60-
int reading_raw_type;
6159

6260
VALUE buffer_ref;
6361

6462
msgpack_unpacker_ext_registry_t *ext_registry;
6563

64+
int reading_raw_type;
65+
unsigned int head_byte;
66+
6667
/* options */
68+
int symbol_ext_type;
6769
bool symbolize_keys;
6870
bool freeze;
6971
bool allow_unknown_ext;
7072
bool optimized_symbol_ext_type;
71-
int symbol_ext_type;
7273
};
7374

7475
#define UNPACKER_BUFFER_(uk) (&(uk)->buffer)

0 commit comments

Comments
 (0)