View Full Version : Performance implications of this.callParent(arguments) -- disables optimization in V8

26 Jun 2014, 9:10 AM
According to this post (https://github.com/petkaantonov/bluebird/wiki/Optimization-killers) "this.callParent(arguments)" will disable method optimization in V8.

This code is used all over Ext. It would be interesting to see if there is an available performance boost by optimizing this code out of high-cost methods within Ext.

It could be replaced with

function(one, two, three) {
this.callParent(one, two, three);


function() {

// perhaps dynamically replaced with senchacmd build step
var args = new Array(arguments.length); for(var i = 0; i < args.length; ++i) { //i is always valid index in the arguments object args[i] = arguments[i]; }

Phil Guerrant
26 Jun 2014, 10:03 AM
see http://www.sencha.com/forum/showthread.php?287619-Optimization-killers