A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
A Methodology for Fine- Grained Parallelism in JavaScript ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Why is <strong>JavaScript</strong> Slow<br />
it's not because <strong>JavaScript</strong> is <strong>in</strong>terpreted,<br />
- current <strong>JavaScript</strong> eng<strong>in</strong>es are JIT compilers<br />
- they per<strong>for</strong>m standard optimizations and code gen<br />
- they can generate good code<br />
it's because <strong>JavaScript</strong> is untyped,<br />
what does c = a + b mean <br />
if a = 1, b = 2 <br />
if a = "cat", b = "dog" <br />
Other reasons too:<br />
object creation, use of eval, sparse arrays, ...<br />
but these th<strong>in</strong>gs shouldn't be <strong>in</strong> hot loops anyway