Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2006 18:28:07 +0000 (UTC)
From:      Jason Evans <jasone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib malloc.c
Message-ID:  <200603191828.k2JIS7YL019141@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jasone      2006-03-19 18:28:07 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      malloc.c 
  Log:
  Optimize realloc() to reallocate in place if the old and new sizes are
  close enough to each other that reallocation would allocate a new region
  of the same size.  This improves the performance of repeated incremental
  reallocations by up to three orders of magnitude. [1]
  
  Fix arena_new() to properly constrain run size if a small chunk size was
  specified during runtime configuration.
  
  Suggested by:   se [1]
  
  Revision  Changes    Path
  1.113     +167 -105  src/lib/libc/stdlib/malloc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603191828.k2JIS7YL019141>