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

From: ko1@...
Date: 2017-05-19 02:33:32 UTC
List: ruby-core #81236
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: <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