Tagged With: Memory Management
Java vs C++: Trading UB for Semantic Memory Leaks (Same Problem, Different Punishment for Failure)
October 30, 2018 by • “No Bugs” Bunny
Quote:
with all due disrespect to mutable static/global data, I have to say that the problem of semantic memory leaks is NOT restricted to statics
Another Quote:
semantics of good code is about the same regardless of Java/C++ choice
Filed under: On.ProgrammingProgramming Languages
Read moreTesting Memory Allocators: ptmalloc2 vs tcmalloc vs hoard vs jemalloc While Trying to Simulate Real-World Loads
July 4, 2018 by • “No Bugs” Bunny
Quote:
if you DO want to get performance from changing mallocs, make sure to test them with your own app
Another Quote:
in our humble opinion, overall winner so far (by a nose) is jemalloc.
Filed under: On.ProgrammingOptimizations
Read moreThe Curse of External Fragmentation: Relocate or Bust!
June 21, 2018 by • “No Bugs” Bunny
Quote:
We won’t ever get (almost) any virtual memory back, plain and simple
Another Quote:
relocation allows not only to reduce fragmentation, but to eliminate it entirely.
Filed under: On.ProgrammingOptimizations
Read more‘Speedy Gonzales’ Serializing (Re)Actors via Allocators
May 1, 2018 by • “No Bugs” Bunny
Quote:
Allocator-based serialization for (Re)Actors is extremely fast (for x64 – around tens of ms per 100MB of state)
Another Quote:
Per-(Re)Actor allocators can be implemented without any changes within (Re)Actor itself (i.e. all the necessary changes can be confined to Infrastructure Code).
Filed under: On.ProgrammingProgramming LanguagesOptimizations
Read more