Originally at 2015-06-14T20:49:15Z by Herbert Vojčík
Operation like = and other relational or arithmentic operator on numbers, strings and booleans should use the typeof checks in inline JS and invoke the primitive JS operation wherever possible. In modern JS engines, typeof checks are really fast and this kind of treatment brings actual speedup (from previous experiences).
Originally at 2015-06-14T20:49:15Z by Herbert Vojčík
Operation like `=` and other relational or arithmentic operator on numbers, strings and booleans should use the typeof checks in inline JS and invoke the primitive JS operation wherever possible. In modern JS engines, typeof checks are really fast and this kind of treatment brings actual speedup (from previous experiences).
<bountysource-plugin>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/22023942-speedup-of-operations-involving-js-primitives-using-typeof-guards?utm_campaign=plugin&utm_content=tracker%2F79201&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F79201&utm_medium=issues&utm_source=github).
</bountysource-plugin>
Originally at 2015-06-14T20:49:15Z by Herbert Vojčík
Operation like
=
and other relational or arithmentic operator on numbers, strings and booleans should use the typeof checks in inline JS and invoke the primitive JS operation wherever possible. In modern JS engines, typeof checks are really fast and this kind of treatment brings actual speedup (from previous experiences).Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Closing.