POV-Ray : Newsgroups : povray.off-topic : Ratatouille : Re: Ratatouille Server Time
11 Oct 2024 03:16:00 EDT (-0400)
  Re: Ratatouille  
From: Orchid XP v7
Date: 27 Mar 2008 11:17:28
Message: <47ebc898$1@news.povray.org>
Nicolas Alvarez wrote:

> I once thought sorting a linked list would be even faster than an array, 
> since moving elements around is so fast (no copying needed, just 
> changing the link). Then pretty quickly noticed how stupid that was; you 
> need to read elements to know *where* to move the elements, and reading 
> random elements is not fast...

Well, if the array elements are quite large, a linked list could 
arguably be faster. However, in that case you'd likely use an array of 
pointers, and any advantage is gone.

[I believe Warp has done some work on this question though...]

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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