Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ThePawnBreak
on Feb 1, 2015
|
parent
|
context
|
favorite
| on:
Ask HN: What are the 20% tips that will get my cod...
You probably mean to put the probably false condition first, since if the first condition is false, the others are not tested anymore.
jonsen
on Feb 1, 2015
[–]
If the first condition is the slowest you can't get faster than that. But if the first is faster it might be the only one executed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: