JavaScript String Performance

Some great work by Dave K this week looking at string concatenation performance for Quantiv’s Planner application. The results below enabled us to drop a custom ExtJS grid’s template rendering time from ~6s to a few hundred milliseconds, with consistent results across browsers. There is also a significant difference between Chrome and the rest of the browser universe!

Results: http://jsperf.com/string-concat-vs-regex-replace/2

P.N.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s