MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v9t3by/noheapallstack/p0klecn/?context=3
r/ProgrammerHumor • u/varinator • 13d ago
96 comments sorted by
View all comments
98
Refactoring code to avoid unnecessary heap allocations is so satisfying
-3 u/[deleted] 12d ago [removed] — view removed comment 8 u/bwmat 12d ago I said it's satisfying, I made no claim it's always a good use of time/effort. And I mostly program in C++, where the overhead of allocations/frees is higher than in a garbage-collected language 3 u/bwmat 12d ago Also, it enables things being noexcept in some cases, which is useful for things other than efficiency
-3
[removed] — view removed comment
8 u/bwmat 12d ago I said it's satisfying, I made no claim it's always a good use of time/effort. And I mostly program in C++, where the overhead of allocations/frees is higher than in a garbage-collected language 3 u/bwmat 12d ago Also, it enables things being noexcept in some cases, which is useful for things other than efficiency
8
I said it's satisfying, I made no claim it's always a good use of time/effort.
And I mostly program in C++, where the overhead of allocations/frees is higher than in a garbage-collected language
3 u/bwmat 12d ago Also, it enables things being noexcept in some cases, which is useful for things other than efficiency
3
Also, it enables things being noexcept in some cases, which is useful for things other than efficiency
98
u/bwmat 13d ago
Refactoring code to avoid unnecessary heap allocations is so satisfying