29 Mar 2007 4:28 AM #1
In the source code i came across a couple of string concatinations using +.
It would be nice if these are changed to using the array.join() as we gain much better performace.
29 Mar 2007 4:43 AM #2
Actually, this is a common misperception. Array.join() is always more efficient AFTER a certain point, but for a few values, the concatenation operator is actually faster (and more convenient of course):
When the number of values being concatenated is small enough the concatenation operator still wins. The cross-over point is not entirely deterministic, but exists somewhere in the neighborhood of 7-13 values. For larger strings the count may be much smaller.
By valc in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 10 Jan 2007, 10:36 AM
By davy_wei in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 7 Jan 2007, 7:08 PM
By qiuyl in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 12 Dec 2006, 6:59 AM
By thejoker101 in forum Ext 1.x: BugsReplies: 1Last Post: 17 Nov 2006, 8:49 AM
By kovtik in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 3 Oct 2006, 5:28 AM