mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

Use st_table insterad of a Hash for GC guard table #147

Closed mrkn closed 3 years ago

mrkn commented 3 years ago

To avoid object allocation during GC at PTR2NUM in pycall_gcguard_delete, I'd like to rewrite GC guard table with st_table with num hash.

This change potentially can fix SEGV occurred on Windows.