It’s everywhere!
No, that’s not really it.
It’s slow!
That’s more like it.
I’m in the process of building and debugging a large interactive data grid on a website for work. By “large” I mean several hundred records displayed at once. By “interactive” mean fully indexed, sortable, and filterable. I usually develop in Chrome and Firefox, so things have been working just fine.
But last week I got a call from a co-worker. ”Why’s the site so slow?”
I was confused. It’s lightning fast on my machine. So I asked what browser they were using … you guessed it … Internet Explorer.
The past week has involved me delving deep into the differences between the various browser’s rendering engines and JavaScript cores. Each browser is subtly different, and something that runs quickly in one might be slow as molasses in another.
Today, I worked with a couple of other developers to determine which would be faster – using a JavaScript array as an index or using a JavaScript object as a hash table.
Another developer wrote a couple of quick scripts that iterate through such a lookup a billion times. I ran the scripts in each browser to see what the results might be … and was shocked! [Read more...]






