POV-Ray : Newsgroups : povray.off-topic : Ratatouille : Re: Ratatouille Server Time
11 Oct 2024 01:24:45 EDT (-0400)
  Re: Ratatouille  
From: Warp
Date: 27 Mar 2008 11:17:33
Message: <47ebc89c@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> In Java, if you sort a linked list (or any collection with linear lookup 
> time), it copies the whole contents into an array, sorts it, and copies 
> the sorted results back to the structure you were using.

  Why? C++ supports sorting of its linked list data structure, and it
does so in-place, without the need for additional memory and without
having to copy elements around. And it's very fast.

-- 
                                                          - Warp


Post a reply to this message

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