Re: [tin 2.1.1] snaphsots

Urs Janßen <[email protected]> Tue, 21 Feb 2012 13:31:25 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Tue, Feb 21, 2012 at 05:56:11AM -0500, Thomas Dickey wrote:
> > debian based linux systems a useable heapsort is available in libbsd
> > (-lbsd /  <bsd/stdlib.h>) - I don't know if it's worth checking for
> 
> on Linux?  I'm using that port with Lynx, but haven't really decided
> if it's a good thing to use since its headers seem to change without
> much reasoning involved.  (It can be troublesome to support in different
> versions).  Something to think about.

Yes on linux. The heapsort in the library uses nearly the same code as the
one provided with tin (the libs version may have an overflow problem with
large arrays as it uses int instead of size_t for several vars; I guess this
will be fixed in the next release) and I doubt that someone will optimize
that code in the (near) future. So (currently) the only benefit would be
a smaller (but less portable) binarie. If there will be some optimization
later on using the libs version may be a win...

I'm fine with the current solution - I just wanted to mention the existence
of the library. <http://libbsd.freedesktop.org/wiki/>

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus