Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore techniques for optimizing JavaScript performance in this conference talk from JSConf EU 2015. Discover common pitfalls in API usage and coding practices that can hinder compiler optimizations. Learn about inefficient iteration, repeated execution, inefficient copying, and API misuse. Examine the balance between performance gains and code maintainability. Delve into pattern specification, Abstract Syntax Tree (AST) transformation, matching, and rewriting. Gain insights into performance measurement techniques and see practical examples of optimization strategies. Enhance your ability to write faster, more efficient JavaScript code while considering the impact on code complexity and maintainability.
Syllabus
Intro
Why does JS performance matter?
Why do we optimize JavaScript code?
How do developers optimize JS?
Inefficient iteration
Repeated execution
Inefficient copying
Inefficient API usage
Performance vs. maintainability
Complexity of optimizations Do the optimizations increase the complexity of code?
Pattern specification
AST transformation
AST matching
AST rewriting
Performance measurement
Example
Conclusion
Taught by
JSConf