POV-Ray : Newsgroups : povray.off-topic : Interesting take on C++ vs others... : Re: Interesting take on C++ vs others... Server Time
6 Sep 2024 01:27:40 EDT (-0400)
  Re: Interesting take on C++ vs others...  
From: Darren New
Date: 4 Jun 2009 12:37:22
Message: <4a27f842$1@news.povray.org>
Warp wrote:
> tends to happen when you just keep a list of freed objects without ever

Have you ever tried building one that uses a bitmap of free entries? Since 
they're all the same size, it would seem easy to do all the math needed quickly.

>   According to my tests this can have such a big impact that even spending
> time sorting freed objects can speed up memory allocation overall. Cache
> misses simply are really expensive.

That's probably another reason the performance of compacting GCs are often 
better than "manual" malloc and free.

-- 
   Darren New, San Diego CA, USA (PST)
   There's no CD like OCD, there's no CD I knoooow!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.