[ruby-core:81237] [Ruby trunk Feature#13494] [PATCH] pack rb_method_definition_t struct

From: ko1@...
Date: 2017-05-19 02:33:48 UTC
List: ruby-core #81237
Issue #13494 has been updated by ko1 (Koichi Sasada).

Assignee changed from ko1 (Koichi Sasada) to normalperson (Eric Wong)

----------------------------------------
Feature #13494: [PATCH] pack rb_method_definition_t struct
https://bugs.ruby-lang.org/issues/13494#change-64893

* Author: normalperson (Eric Wong)
* Status: Assigned
* Priority: Normal
* Assignee: normalperson (Eric Wong)
* 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next