My last post detailed one way that CRuby will eliminate some intermediate array allocations when using methods like Array#hash and Array#max. Part of the technique hinges on detecting when someone monkey patches array. Today, I thought weâd dive a little bit in to how CRuby detects and de-optimizes itself when these âimportantâ methods get monkey patched. Monkey Patching Problem The optimization i
{{#tags}}- {{label}}
{{/tags}}