Community
Participate
Working Groups
Tests have shown that using eval is much slower (especially in Firefox) than executing the same code normally. Using "new Function(codeString)" is almost as slow. One instance of eval has already been removed with Bug 297066. The other eval in Request.js is currently impossible to remove. Qooxdoo uses "new Function" prominently in Class.js and Property.js.
Created attachment 159446 [details] Proposed patch This would remove "new Function" from Class.js. Property.js would be much, much more difficult to cleanse. Depending on the browser and profiling-method used, the involved function need (all together) between 60 and 220ms, so it's unclear if the effort would be worth it. "new Function" is also used in Widget.__initApplyMethods, but this is only called once.
Applied patch to CVS HEAD