Project

General

Profile

« Previous | Next » 

Revision 9b952670

Added by kddnewton (Kevin Newton) almost 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