|
|
|
|
|
by TeMPOraL
2964 days ago
|
|
And from that, at some point you realize that the corollary to your #2 says that such hacks do apply to certain data types in certain environments. And then you've gained a very powerful tool to be used in specific circumstances. There's a reason a lot of these potentially non-portable tricks show up in high-performance computing (particularly in videogames) and in the embedded space. |
|
Otherwise, remember the first rule of code optimization for beginners: "Don't."
EDIT: And by "they don't apply", I mean they can crash your program or even silently corrupt your data.