From: ko1@... Date: 2017-05-19T02:33:32+00:00 Subject: [ruby-core:81236] [Ruby trunk Feature#13494] [PATCH] pack rb_method_definition_t struct Issue #13494 has been updated by ko1 (Koichi Sasada). Sorry for late response. No problem. Thanks, Koichi ---------------------------------------- Feature #13494: [PATCH] pack rb_method_definition_t struct https://bugs.ruby-lang.org/issues/13494#change-64892 * Author: normalperson (Eric Wong) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: ---------------------------------------- ``` We only have 12 method types, so 4 bits is enough for rb_method_type_t. Size reductions: - x86-64 48 => 40 bytes - x86 28 => 24 bytes * method.h (enum method_optimized_type): split out for CPP (struct rb_method_definition struct): pack on unaligned systems (rb_method_definition_t): split typedef to help ctags ``` ---Files-------------------------------- 0001-method.h-pack-rb_method_definition_t-struct.patch (1.96 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: