Issue #9916 has been reported by Shyouhei Urabe.

----------------------------------------
Feature #9916: Hide Struct internal
https://bugs.ruby-lang.org/issues/9916

* Author: Shyouhei Urabe
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
----------------------------------------
is a bit big so I attach the proposal but basically same as my previous proposals.  I'd like to make strct RStruct opaque.  The benefit is that by hiding its `const VALUE* ptr` part we can optimize GC pressure.  That GC tweaks are not included in the attached patch because I prefer compatibility here.  But this patch does make things easier.

---Files--------------------------------
opaque-RStruct.patch (6.16 KB)


-- 
https://bugs.ruby-lang.org/