From 7c1a09a68f5e2a289821945eb203bf4face1e637 Mon Sep 17 00:00:00 2001 From: joris Date: Sat, 14 Jun 2008 03:19:15 +0000 Subject: 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@ --- usr.bin/cvs/commit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index ff58ca99d4c..ecfdf49741b 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.140 2008/06/10 19:00:17 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.141 2008/06/14 03:19:15 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -633,7 +633,6 @@ cvs_commit_local(struct cvs_file *cf) } else { entlist = cvs_ent_open(cf->file_wd); cvs_ent_remove(entlist, cf->file_name); - cvs_ent_close(entlist, ENT_SYNC); cvs_get_repository_path(cf->file_wd, repo, MAXPATHLEN); -- cgit v1.2.3-59-g8ed1b