Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moefh
on Aug 22, 2017
|
parent
|
context
|
favorite
| on:
Why is this C++ code faster than my hand-written a...
That's sad. Both gcc and clang at -O3 can optimize it++ to ++it (see [1]).
Hopefully MSVC will improve soon.
[1]
https://godbolt.org/g/pxzVdP
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Hopefully MSVC will improve soon.
[1] https://godbolt.org/g/pxzVdP