diff options
Diffstat (limited to 'src/lib/libcrypto/man/lh_new.3')
-rw-r--r-- | src/lib/libcrypto/man/lh_new.3 | 10 |
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 | |||
488 | the hash table. | 488 | the hash table. |
489 | The default values are as follows. | 489 | The default values are as follows. |
490 | If (hash->up_load < load) => expand. | 490 | If (hash->up_load < load) => expand. |
491 | if (hash->down_load > load) => contract. | 491 | If (hash->down_load > load) => contract. |
492 | The | 492 | The |
493 | .Fa up_load | 493 | .Fa up_load |
494 | has a default value of 1 and | 494 | has a default value of 1 and |
@@ -503,12 +503,12 @@ variables. | |||
503 | The 'load' is kept in a form which is multiplied by 256. | 503 | The 'load' is kept in a form which is multiplied by 256. |
504 | So hash->up_load=8*256 will cause a load of 8 to be set. | 504 | So hash->up_load=8*256 will cause a load of 8 to be set. |
505 | .Pp | 505 | .Pp |
506 | If you are interested in performance the field to watch is | 506 | If you are interested in performance, the field to watch is |
507 | .Fa num_comp_calls . | 507 | .Fa num_comp_calls . |
508 | The hash library keeps track of the 'hash' value for each item so when a | 508 | The hash library keeps track of the 'hash' value for each item so when a |
509 | lookup is done, the 'hashes' are compared, if there is a match, then a | 509 | lookup is done, the 'hashes' are compared, if there is a match, then a |
510 | full compare is done, and hash->num_comp_calls is incremented. | 510 | full compare is done, and hash->num_comp_calls is incremented. |
511 | If num_comp_calls is not equal to num_delete plus num_retrieve it means | 511 | If num_comp_calls is not equal to num_delete plus num_retrieve, it means |
512 | that your hash function is generating hashes that are the same for | 512 | that your hash function is generating hashes that are the same for |
513 | different values. | 513 | different values. |
514 | It is probably worth changing your hash function if this is the case | 514 | It is probably worth changing your hash function if this is the case |