lua-users home
lua-l archive

Re: Speed query

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thursday 27 March 2008, Geoff Leyland wrote:
> On 27/03/2008, at 9:49 AM, Javier Guerra wrote:
> > ok, i wrote the 'h:reheapify()' function:
>
> Thanks. For the stuff I actually use this for it's small cycles so I
> guess the push is better, but it's definitely worth adding.
it could be useful for heap initialisation, to create a heap from an initial 
data source without having to fed it one by one. a single heapify() for a 
big data set can be much better than a sort(), even if it's in C
-- 
Javier

Attachment: signature.asc
Description: This is a digitally signed message part.


AltStyle によって変換されたページ (->オリジナル) /