Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/lib Introduce some caching.



details:   https://anonhg.NetBSD.org/src/rev/5eed71121d9f
branches:  trunk
changeset: 498367:5eed71121d9f
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Oct 21 00:55:23 2000 +0000

description:
Introduce some caching.

diffstat:

 usr.sbin/pkg_install/lib/pkgdb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 0cff8d82a9a9 -r 5eed71121d9f usr.sbin/pkg_install/lib/pkgdb.c
--- a/usr.sbin/pkg_install/lib/pkgdb.c  Fri Oct 20 23:24:52 2000 +0000
+++ b/usr.sbin/pkg_install/lib/pkgdb.c  Sat Oct 21 00:55:23 2000 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: pkgdb.c,v 1.7 2000/06/19 13:28:06 hubertf Exp $        */
+/*     $NetBSD: pkgdb.c,v 1.8 2000/10/21 00:55:23 mycroft Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.7 2000/06/19 13:28:06 hubertf Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.8 2000/10/21 00:55:23 mycroft Exp $");
 #endif
 
 /*
@@ -64,10 +64,10 @@
 
        /* try our btree format first */
        info.flags = 0;
-       info.cachesize = 0;
+       info.cachesize = 2*1024*1024;
        info.maxkeypage = 0;
        info.minkeypage = 0;
-       info.psize = 0;
+       info.psize = 4096;
        info.compare = NULL;
        info.prefix = NULL;
        info.lorder = 0;



Home | Main Index | Thread Index | Old Index