POV-Ray : Newsgroups : povray.off-topic : Ratatouille : Re: Ratatouille Server Time
11 Oct 2024 01:23:13 EDT (-0400)
  Re: Ratatouille  
From: Nicolas Alvarez
Date: 27 Mar 2008 11:25:44
Message: <47ebca88$1@news.povray.org>
Warp escribió:
> 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.

I said how it works, it wasn't my idea :D

http://ln-s.net/1jjA


Post a reply to this message

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