27.01.2015 Views

A Methodology for Fine- Grained Parallelism in JavaScript ...

A Methodology for Fine- Grained Parallelism in JavaScript ...

A Methodology for Fine- Grained Parallelism in JavaScript ...

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!