Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nly
on Dec 17, 2015
|
parent
|
context
|
favorite
| on:
Optimizing Software in C++ [pdf]
Yes, and the compiler knows that as well. GCC even merges the two versions because they're equivalent[0]
My point is, if size is dynamic, this is a dangerous optimisation.
[0]
http://goo.gl/4Ev8as
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
My point is, if size is dynamic, this is a dangerous optimisation.
[0] http://goo.gl/4Ev8as