The Art of Machinery personal blog
Why Const Doesn't Make C Code Faster
In a post a few months back I said it’s a popular myth that const is helpful for enabling compiler optimisations in C and C++ . I figured I should explain that one, especially because I used to believe it was obviously true, myself. I’ll start off with some theory and artificial examples, then I’ll do some experiments…
- Points
- 291
- HN comments
- 190
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringSystems & Performance2019
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Aug 19, 2019 | Why Const Doesn't Make C Code Faster by mnem | 291 | 190 |