Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2001 06:39:36 -0800
From:      Greg Shenaut <greg@bogslab.ucdavis.edu>
To:        hackers@FreeBSD.ORG
Subject:   Re: head(1) speedup 
Message-ID:  <200111021439.fA2EdbP17494@thistle.bogs.org>
In-Reply-To: Your message of "Fri, 02 Nov 2001 02:23:33 CST." <20011102022333.L15052@elvis.mu.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20011102022333.L15052@elvis.mu.org>, Alfred Perlstein cleopede:
>can someone please check this out, it makes "head -n" about five
>times faster.  (also nukes a 'register', sorry :))

I'm curious--does using fgetln here always result in a win, or just
with short lines?  I'm thinking of the impact of realloc and memcpy
on speed.

Greg Shenaut

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111021439.fA2EdbP17494>