From: normalperson@... Date: 2017-04-22T01:21:19+00:00 Subject: [ruby-core:80826] [Ruby trunk Feature#13494] [PATCH] pack rb_method_definition_t struct Issue #13494 has been reported by normalperson (Eric Wong). ---------------------------------------- Feature #13494: [PATCH] pack rb_method_definition_t struct https://bugs.ruby-lang.org/issues/13494 * Author: normalperson (Eric Wong) * Status: Open * 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: