Project

General

Profile

ยซ Previous | Next ยป 

Revision 9b952670

Added by kddnewton (Kevin Newton) about 2 years ago

[ruby/yarp] Less const_get

Right now whenever you go to create a Ruby object from a C struct
we dynamically look up the constants. This is not great for
performance. Now instead we template out a constant for each VALUE
that holds the classes, and then directly reference it.

https://github.com/ruby/yarp/commit/f4756cda77