#1192 Speedup of operations involving JS primitives using typeof guards

Closed
opened 8 years ago by nero · 1 comments

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.

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>
Herby Vojčík commented 3 years ago
Owner

Closing.

Closing.
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.