diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-27 16:05:22 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-27 16:05:22 +0000 |
commit | e4827a10efc4c9779a532fdab3cfaf618c7f2ede (patch) | |
tree | fb4a252bc55e3fed10238a3f3bf32177af24e6b6 /usr.bin/rcs/rcsprog.c | |
parent | 610ad560277906f254eb396c4bf343b9b4eaca33 (diff) |
- implement lazy-parsing of rcs files, that is only parse as much as we
need. this can save us much work, particularly with very large rcs files.
first of a few important performance improvements.
ok joris@
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 27bc3d81897..5e3dde89a63 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.57 2005/12/24 16:37:46 xsa Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.58 2005/12/27 16:05:21 niallo Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -383,7 +383,7 @@ rcs_main(int argc, char **argv) kflag = lkmode = -1; fmode = 0; - flags = RCS_RDWR; + flags = RCS_RDWR|RCS_PARSE_FULLY; descfile = nflag = NULL; logstr = alist = comment = elist = NULL; |