POV-Ray : Newsgroups : povray.advanced-users : the POV-ray SDL--similar to Java and/or Python? : Re: the POV-ray SDL--similar to Java and/or Python? Server Time
6 Oct 2024 20:23:00 EDT (-0400)
  Re: the POV-ray SDL--similar to Java and/or Python?  
From: Orchid XP v3
Date: 14 Sep 2006 13:32:14
Message: <4509921e$1@news.povray.org>
>>>   Oh, you have discovered a method to completely avoid memory
>>> fragmentation? :-o Is it efficient?
> 
>> Yes, and yes.
> 
>   That would mean that the memory allocation engine knows ahead of time
> the order in which objects will be "forgotten" (ie. nothing points to them
> anymore so they can be freed) so that it can group them in contiguous
> memory. Of course this is impossible (not even by analyzing the program
> because the order in which objects are "forgotten" may depend on things
> like user input).
> 
>   The only other alternative is that it performs memory defragmentation
> before freeing the objects. But that doesn't sound any faster than
> freeing the objects directly.

Go through memory, find all the dead objects, and *then* defrag the 
whole lot in a single pass. Done.


Post a reply to this message

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