matsadler / magnus

Ruby bindings for Rust. Write Ruby extension gems in Rust, or call Ruby from Rust.
https://docs.rs/magnus/latest/magnus/
MIT License
682 stars 35 forks source link

Default `TypedData` as `wb_protected` when there is no mark function #56

Closed ianks closed 1 year ago

ianks commented 1 year ago

If there is no mark function, then we assume there are no references to Ruby objects. As such, we can avoid inserting GC write barriers.

See: https://github.com/ruby/ruby/pull/7255

matsadler commented 1 year ago

Cool!

matsadler commented 1 year ago

Thanks 🙂