Jon Udell to join Microsoft as evangelist-ish type Being a power user and little tools
Dec 08

Rewritting malloc for that extra bit of performance

Google, Tech Add comments

A long time ago, I was leaked the codebase of a popular id software game, both before optimization, and after.

When you ended up seeing was:

  • prototype: mainly C/C++, with some assembler
  • production: assembler all over. all over.
  • They also used a special malloc. I remember at the time thinking: “they freaking rewrote malloc?”. In fact the special version came from a Finnish group of uber-hackers, and even that was customized for certain corner cases when it made sense.

    This all came to light when I read tcmalloc success which discusses Domas Mituzas of MySQL using tcmalloc (an open source Google perftool) to debug some nasty memory leaks.

    Nice. I hope I don’t never have to use it ;)

3 Responses to “Rewritting malloc for that extra bit of performance”

  1. edisern Says:

    “Player friend:come here to experience the pouring , thrilling and lightsome

    online game, please register the following website ,they will provide the high-

    speed game agency to every player, the speed and service must be the top-grade

    absolutely .game

  2. edisern Says:

    “Player friend:come here to experience the pouring , thrilling and lightsome

    online game, please register the following website ,they will provide the high-

    speed game agency to every player, the speed and service must be the top-grade

    absolutely .game

  3. richard kai Says:

    Teenwag.com runs of postgresql compiled with tcmalloc

    thanks google

    Tcmalloc optimized Teenwag

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: What are the first four letters in the word British?