‘@

Home 

javascript Programming Glossary: optimisation

Sort an array by the “Levenshtein Distance” with best performance in Javascript

http://stackoverflow.com/questions/11919065/sort-an-array-by-the-levenshtein-distance-with-best-performance-in-javascript

it was inline and for IE8 I did quite a lot of performance optimisation. http www.merriampark.com ld.htm http www.mgilleland.com ld..

jQuery uses (new Function(“return ” + data))(); instead of eval(data); to parse JSON, why?

http://stackoverflow.com/questions/2449220/jquery-uses-new-functionreturn-data-instead-of-evaldata-to-parse

terms of language level weirdness and hence resistance to optimisation. Specifically function victim var a 1 eval 'a 2' return a gives.. and particularly clever minifiers ‰β€” to apply more optimisations. For example the second victim function could have the a variable.. away to return 1 . One use of eval and a lot of potential optimisations aren't going to be doable. Of course in practice for a tiny..

Is strict mode more performant?

http://stackoverflow.com/questions/3145966/is-strict-mode-more-performant

in general Do any of the major browsers do additional optimisation or use any other techniques that will improve performance in.. its other goals to allow browsers to introduce additional optimisations or other performance enhancements javascript share improve.. its other goals to allow browsers to introduce additional optimisations or other performance enhancements Whether or not it was intended..

Should jQuery's parseJSON/getJSON methods be used?

http://stackoverflow.com/questions/3238842/should-jquerys-parsejson-getjson-methods-be-used

terms of language level weirdness and hence resistance to optimisation. Check out Nick Craver's answer there too for a direct quote..

$(this) OR event.target OR var input = $(this)

http://stackoverflow.com/questions/3388019/this-or-event-target-or-var-input-this

overhead. However sometimes you need to gear back from optimisation to make sure your code maintains it's readability. Another option..

What is CavalryLogger and do I need it?

http://stackoverflow.com/questions/4188605/what-is-cavalrylogger-and-do-i-need-it

is CavalryLogger and do I need it I'm doing some optimisation on a site Ive recently taken over. I've found a script I don't..

Javascript when to use prototypes

http://stackoverflow.com/questions/4736910/javascript-when-to-use-prototypes

share improve this question Prototypes are an optimisation . A great example of using them well is the jQuery library... this is hidden from the programmer. It's treated purely an optimisation not as something that you have to worry about when using the..

Is reading the `length` property of an array really that expensive an operation in JavaScript?

http://stackoverflow.com/questions/5752906/is-reading-the-length-property-of-an-array-really-that-expensive-an-operation

how this works so please don't hit me with the premature optimisation stick. Assume the JavaScript engines in browsers. Is there any..