summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remote.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-14 03:19:16 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-14 03:19:16 +0000
commite0521522cf3a43f99da13b4e1a59bd82bb470015 (patch)
tree05bc8014a274d830c1ce4f23347e9fd2fd708b44 /usr.bin/cvs/remote.c
parentdc650b3cd564bb3f7b03f782108ce9e181b89ed4 (diff)
don't always re-open the same CVS/Entries file, instead keep the
last opened CVS/Entries around to operate on and close it whenever we switch directory. gives us a small performance boost, obviously. while doing this, switch the way we write revisions to disk by using fwrite(3) so stuff can get written to disk in chunks instead of writing everything line by line, another win. with help from otto@ ok tobias@
Diffstat (limited to 'usr.bin/cvs/remote.c')
-rw-r--r--usr.bin/cvs/remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/cvs/remote.c b/usr.bin/cvs/remote.c
index f472dcc274d..b3a0f538244 100644
--- a/usr.bin/cvs/remote.c
+++ b/usr.bin/cvs/remote.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: remote.c,v 1.23 2008/06/12 07:16:14 joris Exp $ */
+/* $OpenBSD: remote.c,v 1.24 2008/06/14 03:19:15 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -247,7 +247,6 @@ cvs_remote_classify_file(struct cvs_file *cf)
entlist = cvs_ent_open(cf->file_wd);
cf->file_ent = cvs_ent_get(entlist, cf->file_name);
- cvs_ent_close(entlist, ENT_NOSYNC);
if (cf->file_ent != NULL && cf->file_ent->ce_status != CVS_ENT_REG) {
if (cf->file_ent->ce_status == CVS_ENT_ADDED)