|
![](/i/fill.gif) |
In article <200### [at] dh286 pem cam ac uk> , Daniel Hulme
<pho### [at] istic org> 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] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |