POV-Ray : Newsgroups : povray.programming : test if all contained objects are hollow : Re: test if all contained objects are hollow Server Time
28 Jun 2024 02:07:14 EDT (-0400)
  Re: test if all contained objects are hollow  
From: Thorsten Froehlich
Date: 10 Nov 2004 12:00:34
Message: <41924932@news.povray.org>
In article <200### [at] dh286pemcamacuk> , Daniel Hulme 
<pho### [at] isticorg>  wrote:

> On the subject of Ray->Interiors, would this not be better as a linked
> list than an array?

Iterating a list is (slightly for each access) slower than iterating an
array.  If the array is small, copying likely does not cost as much as the
overhead introduced by using a linked list.  The smartest thing might well
be to actually have a start index and instead of moving list elements, to
increment the start index instead and only move if really necessary (which
could guaranteed to be never if the array would be used as a ring-buffer).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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