Those outside of the ruby community (and some inside) oft reference ruby applications as being slow. For many of us this is an irrelevance, IO bound operations etc. However, when it does become a problem there is little to hold us back from taking advantage of native code to speed things up. To this end I am wondering why RoR (itself the target of many ‘slow’ comments) doesn’t make use of any native elements to speed itself up?
Is there a particular reason?
Is there a lack of tight loops to optimise within the codebase?
Rails takes advantage of “native”, aka compiled, extensions, but it keeps them as separate and optional libraries.
For instance, Rails lets you use
nokogirias an XML parser, instead of the standard Ruby-based parser.There are at least 3 reasons why Rails probably won’t replace internal functions with C/C++ equivalents.