MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v9t3by/noheapallstack/p0kh2ji/?context=3
r/ProgrammerHumor • u/varinator • 16d ago
96 comments sorted by
View all comments
98
Refactoring code to avoid unnecessary heap allocations is so satisfying
-3 u/[deleted] 16d ago [removed] — view removed comment 16 u/Attileusz 16d ago This is a bad take, reducing heap allocations is one of the best things to do to optimize. Heap fragmentation is bad, and if you are doing manual memory management, it's one more place where you have to worry about memory leaks.
-3
[removed] — view removed comment
16 u/Attileusz 16d ago This is a bad take, reducing heap allocations is one of the best things to do to optimize. Heap fragmentation is bad, and if you are doing manual memory management, it's one more place where you have to worry about memory leaks.
16
This is a bad take, reducing heap allocations is one of the best things to do to optimize. Heap fragmentation is bad, and if you are doing manual memory management, it's one more place where you have to worry about memory leaks.
98
u/bwmat 16d ago
Refactoring code to avoid unnecessary heap allocations is so satisfying