On Wednesday, June 13, 2012 9:20:34 AM UTC-4, Jams wrote: > > > you might have better luck emailing ruby-core if you're interested in this > an can't work it out. > > Have you looked through the ruby-lang archives? The first hit I found for > require_relative was this: http://www.ruby-forum.com/topic/148978 which > seems to indicate there wasn't much discussion about the functionality. > What's cool is that it also shows that require_relative was originally ruby > code, not C. > > Assuming that it was rewritten in C (I haven't checked), I imagine it was > to ensure performance. 1.9 had a lot of performance improvements over 1.8. >
Unfortunately I learned a few months ago that #require_relative has not been optimized, so it is hardly any better for being written in C. However, I am hopeful that one day someone will take the time to optimize it as it is ripe for such treatment and then it could readily help boost load speeds. -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
