summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/lh_new.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/lh_new.3')
-rw-r--r--src/lib/libcrypto/man/lh_new.310
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/lh_new.3 b/src/lib/libcrypto/man/lh_new.3
index a9ac283a90..c848eed825 100644
--- a/src/lib/libcrypto/man/lh_new.3
+++ b/src/lib/libcrypto/man/lh_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: lh_new.3,v 1.8 2021/12/17 16:32:07 schwarze Exp $ 1.\" $OpenBSD: lh_new.3,v 1.9 2022/03/31 17:27:17 naddy Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL doc/crypto/lhash.pod 1bc74519 May 20 08:11:46 2016 -0400 3.\" OpenSSL doc/crypto/lhash.pod 1bc74519 May 20 08:11:46 2016 -0400
4.\" selective merge up to: 4.\" selective merge up to:
@@ -118,7 +118,7 @@
118.\" copied and put under another distribution licence 118.\" copied and put under another distribution licence
119.\" [including the GNU Public Licence.] 119.\" [including the GNU Public Licence.]
120.\" 120.\"
121.Dd $Mdocdate: December 17 2021 $ 121.Dd $Mdocdate: March 31 2022 $
122.Dt LH_NEW 3 122.Dt LH_NEW 3
123.Os 123.Os
124.Sh NAME 124.Sh NAME
@@ -488,7 +488,7 @@ The load is the number of items in the hash table divided by the size of
488the hash table. 488the hash table.
489The default values are as follows. 489The default values are as follows.
490If (hash->up_load < load) => expand. 490If (hash->up_load < load) => expand.
491if (hash->down_load > load) => contract. 491If (hash->down_load > load) => contract.
492The 492The
493.Fa up_load 493.Fa up_load
494has a default value of 1 and 494has a default value of 1 and
@@ -503,12 +503,12 @@ variables.
503The 'load' is kept in a form which is multiplied by 256. 503The 'load' is kept in a form which is multiplied by 256.
504So hash->up_load=8*256 will cause a load of 8 to be set. 504So hash->up_load=8*256 will cause a load of 8 to be set.
505.Pp 505.Pp
506If you are interested in performance the field to watch is 506If you are interested in performance, the field to watch is
507.Fa num_comp_calls . 507.Fa num_comp_calls .
508The hash library keeps track of the 'hash' value for each item so when a 508The hash library keeps track of the 'hash' value for each item so when a
509lookup is done, the 'hashes' are compared, if there is a match, then a 509lookup is done, the 'hashes' are compared, if there is a match, then a
510full compare is done, and hash->num_comp_calls is incremented. 510full compare is done, and hash->num_comp_calls is incremented.
511If num_comp_calls is not equal to num_delete plus num_retrieve it means 511If num_comp_calls is not equal to num_delete plus num_retrieve, it means
512that your hash function is generating hashes that are the same for 512that your hash function is generating hashes that are the same for
513different values. 513different values.
514It is probably worth changing your hash function if this is the case 514It is probably worth changing your hash function if this is the case