Infrequently Noted

Alex Russell on browsers, standards, and the process of progress.

Comments for another reason to use Dojo: dojo.string.Builder


So, does the Mozilla based interpreter do something similar to what construction/join does? What makes it so much faster?
by John Christopher at
It seems that Spidermoneky special-cases the string add operation, calling js_ConcatStrings() (defined here http://lxr.mozilla.org/seamonkey/source/js/src/jsstr.c#133) instead of the default adder. js\_ConcatStrings interally tries to realloc instead of throwing away the old left-associated string value, thereby skipping the overhead of intermediate string creation. It's faster than the array.join() hack since it's implemented in C.
by alex at
About String in Firefox, IE and Opera

In round of “String += String” match, Firefox v.s. IE v.s. Opera, and the WINNER is Opera 8. ...