Tag Archives: performance

Defining Functions Inline Is Just Fine

I put together this jsperf to see if there’s a difference between defining your function and then using it or defining it inline when looping with jQuery.each. You can try it yourself if you like, but here are the results: … Continue reading

Posted in javascript | Tagged , , , , | 1 Comment

That’s Profiling!

I want to see if one string exists in another, case-insensitive. What’s faster? Making the strings both lower case then comparing them with String.match? Comparing the first string to a case-insensitive regular expression of the other? Making them both lower … Continue reading

Posted in javascript | Tagged , , | Leave a comment