git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add custom memory allocator to MinGW and MacOS builds

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 3, 2009, 15:01 UTC
Message-ID
<alpine.DEB.1.00.0904031659290.10279@pacific.mpi-cbg.de>
In-Reply-To
<1238766761-3576-1-git-send-email-marius@trolltech.com>
Hi,
On Fri, 3 Apr 2009, Marius Storm-Olsen wrote:
Show 34 quoted lines
> The standard allocator on Windows is pretty bad prior to Windows Vista, 
> and nedmalloc is better than the modified dlmalloc provided with newer 
> versions of the MinGW libc.
> 
> Note that both Windows and MacOSX need to have an implementation of 
> strdup, which I added at the end of nedmalloc.c, to ensure that strdup 
> use the same heap. So, setting USE_NED_ALLOCATION = YesPlease will also 
> add this function reimplementation, unless you define 
> NEDMALLOC_DONT_OVERRIDE_STRDUP.
> 
> NedMalloc stats in Git
> ----------------------
>   All results are the best result out of 3 runs. The
>   benchmarks have been done on different hardware, so
>   the repack times are not comparable.
> 
>   These benchmarks are all based on 'git repack -adf'
>   on the Linux kernel.
> 
>   XP
>   -----------------------------------------------
>   MinGW               Threads  Total Time   Speed
>   -----------------------------------------------
>   3.4.2                  (1T)  00:12:28.422
>   3.4.2     + nedmalloc  (1T)  00:07:25.437 1.68x
> 
>   3.4.5                  (1T)  00:12:20.718
>   3.4.5     + nedmalloc  (1T)  00:07:24.809 1.67x
> 
>   4.3.3-tdm              (1T)  00:12:01.843
>   4.3.3-tdm + nedmalloc  (1T)  00:07:16.468 1.65x
> 
>   4.3.3-tdm              (2T)  00:07:35.062
>   4.3.3-tdm + nedmalloc  (2T)  00:04:57.874 1.54x
Wow!  That is impressive.
Show 7 quoted lines
>  Makefile                     |   10 +
>  compat/nedmalloc/License.txt |   23 +
>  compat/nedmalloc/Readme.txt  |  136 +
>  compat/nedmalloc/malloc.c.h  | 5750 ++++++++++++++++++++++++++++++++++++++++++
>  compat/nedmalloc/nedmalloc.c |  966 +++++++
>  compat/nedmalloc/nedmalloc.h |  180 ++
>  6 files changed, 7065 insertions(+), 0 deletions(-)
However, this is impressive, too ;-)

Ciao, Dscho

Previous: Marius Storm-OlsenNext: Janos Laube
Message 9 of 10 in “Add custom memory allocator to MinGW and MacOS builds”
  1. Add custom memory allocator to MinGW and MacOS buildsMarius Storm-Olsen, Apr 3, 2009
  2. Marius Storm-OlsenApr 3, 2009
  3. Pat ThoytsApr 3, 2009
  4. Johannes SchindelinApr 3, 2009
  5. Pat ThoytsApr 3, 2009
  6. Marius Storm-OlsenApr 4, 2009
  7. Johannes SixtApr 4, 2009
  8. Marius Storm-OlsenApr 5, 2009
  9. Johannes SchindelinApr 3, 2009
  10. Janos LaubeApr 3, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.