Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mrdoob
on Jan 26, 2015
|
parent
|
context
|
favorite
| on:
Texgen.js – Lightweight Procedural Texture Generat...
I instrumented the code and using conditionals resulted in 2x the generation time per loop. These loops are executed only once so the VM doesn't have a chance to optimise them.
gavanwoolery
on Jan 26, 2015
[–]
I've done similar in the past and can concur that it does have large performance benefits, at least in Chrome where I tested it.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: