Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vardump
on Oct 11, 2023
|
parent
|
context
|
favorite
| on:
Going faster by duplicating code
> `a[i++] = a[i++] + 1;`
This is probably not what you want, as "i" is increased twice.
jrumbut
on Oct 11, 2023
[–]
That's why it matters in that situation, because it changes what actually happens (not just the performance).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This is probably not what you want, as "i" is increased twice.