Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 1995 18:54:17 +0100
From:      Wolfram Schneider <wosch@freebsd.first.gmd.de>
To:        FreeBSD-gnats-submit@freebsd.org, wosch@freebsd.first.gmd.de
Subject:   bin/783: find improvement
Message-ID:  <199510161754.SAA13569@freebsd.first.gmd.de>
Resent-Message-ID: <199510161800.LAA15421@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         783
>Category:       bin
>Synopsis:       find improvement
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 16 11:00:00 PDT 1995
>Last-Modified:
>Originator:     Wolfram Schneider
>Organization:
>Release:        FreeBSD 2.0-BUILT-19950530 i386
>Environment:

The following patch made find(1) in worst case 5-10% faster
(user+system time; for find / -print)

--- 1.1	1995/10/16 17:35:18
+++ function.c	1995/10/16 17:36:09
@@ -783,7 +783,7 @@
 	PLAN *plan;
 	FTSENT *entry;
 {
-	(void)printf("%s\n", entry->fts_path);
+	(void)puts(entry->fts_path);
 	return (1);
 }
 
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:



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