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:24:20 EDT (-0400)
  Re: Interesting take on C++ vs others...  
From: John VanSickle
Date: 3 Jun 2009 21:15:51
Message: <4a272047$1@news.povray.org>
Warp wrote:
> John VanSickle <evi### [at] hotmailcom> wrote:
>> Does it do something simple, like anticipate future needs based on the 
>> current vector size?
> 
>   My allocator can only be used to allocate elements of the same size.
> It allocates larger buffers of memory and then manages a simple list of
> free blocks.

Pretty much what I'd thought; allocate space for more than one when 
called, and return a piece of the extra space for later calls.

Regards,
John


Post a reply to this message

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