aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-01-27 17:29:02 +0000
committerDavid Shaw <[email protected]>2004-01-27 17:29:02 +0000
commitd726dc1223333e4a5ad66920664d2e194d2555f4 (patch)
tree18953d044d5945991db7cf85099e9ff039698586
parent* compress.c (init_compress): Remove "-z10" trick to get uncompressed data (diff)
downloadgnupg-d726dc1223333e4a5ad66920664d2e194d2555f4.tar.gz
gnupg-d726dc1223333e4a5ad66920664d2e194d2555f4.zip
* NEWS: Note --enable-key-cache and OpenBSD/i386 and HPPA fixes.
* README, configure.ac: Add --enable-key-cache=SIZE configure option. This sets the key/uid cache size. Default is 4096.
-rw-r--r--ChangeLog7
-rw-r--r--NEWS6
-rw-r--r--README7
-rw-r--r--configure.ac25
4 files changed, 44 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e38f1a0f7..3e67c1020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-27 David Shaw <[email protected]>
+
+ * NEWS: Note --enable-key-cache and OpenBSD/i386 and HPPA fixes.
+
+ * README, configure.ac: Add --enable-key-cache=SIZE configure
+ option. This sets the key/uid cache size. Default is 4096.
+
2003-12-28 David Shaw <[email protected]>
* configure.ac: Include stdio.h when checking for bzlib.h.
diff --git a/NEWS b/NEWS
index 51257cc67..caf5e9d34 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,11 @@
Noteworthy changes in version 1.2.5 (unreleased)
------------------------------------------------
+ * Some performance improvements with large keyrings.
+
+ * Some portability fixes for the OpenBSD/i386 and HPPA platforms.
+
+
Noteworthy changes in version 1.2.4 (2003-12-23)
------------------------------------------------
@@ -25,6 +30,7 @@ Noteworthy changes in version 1.2.4 (2003-12-23)
* A Russian translation is included again as well as a new
Belarusian translation.
+
Noteworthy changes in version 1.2.3 (2003-08-21)
------------------------------------------------
diff --git a/README b/README
index 686141312..5cbc8e88e 100644
--- a/README
+++ b/README
@@ -546,6 +546,13 @@
Enable read-only SHA-384 and SHA-512 digest
support.
+ --enable-key-cache=SIZE
+ Set the internal key and UID cache size. This has
+ a significant impact on performance with large
+ keyrings. The default is 4096, but for use on
+ platforms where memory is an issue, it can be set
+ as low as 5.
+
Installation Problems
---------------------
diff --git a/configure.ac b/configure.ac
index 66644a73d..65bfa6cf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,6 +241,30 @@ AC_ARG_WITH(included-zlib,
[g10_force_zlib=yes], [g10_force_zlib=no] )
AC_MSG_RESULT($g10_force_zlib)
+dnl
+dnl Check for the key/uid cache size. This can't be zero, but can be
+dnl pretty small on embedded systems.
+dnl
+AC_MSG_CHECKING([for the size of the key and uid cache])
+AC_ARG_ENABLE(key-cache,
+ AC_HELP_STRING([--enable-key-cache=SIZE],[Set key cache to SIZE (default 4096)]),,enableval=4096)
+
+if test "$enableval" = "no"; then
+ enableval=5
+elif test "$enableval" = "yes" || test "$enableval" = ""; then
+ enableval=4096
+fi
+
+changequote(,)dnl
+key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
+changequote([,])dnl
+
+if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
+ AC_MSG_ERROR([invalid key-cache size])
+fi
+
+AC_MSG_RESULT($key_cache_size)
+AC_DEFINE_UNQUOTED(PK_UID_CACHE_SIZE,$key_cache_size,[Size of the key and UID caches])
dnl
dnl Check whether we want to use Linux capabilities
@@ -290,7 +314,6 @@ GNUPG_CHECK_DOCBOOK_TO_TEXI
MPI_OPT_FLAGS=""
-
try_gettext=yes
have_dosish_system=no
case "${target}" in