Home
last modified time | relevance | path

Searched hist:"355 ef8e15885020da88f5ba2d85ce42b1d01f537" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/linux/
H A Dkey.hdiff 355ef8e15885020da88f5ba2d85ce42b1d01f537 Wed Jun 26 15:02:32 CDT 2019 David Howells <dhowells@redhat.com> keys: Cache the hash value to avoid lots of recalculation

Cache the hash of the key's type and description in the index key so that
we're not recalculating it every time we look at a key during a search.
The hash function does a bunch of multiplications, so evading those is
probably worthwhile - especially as this is done for every key examined
during a search.

This also allows the methods used by assoc_array to get chunks of index-key
to be simplified.

Signed-off-by: David Howells <dhowells@redhat.com>
/openbmc/linux/security/keys/
H A Dinternal.hdiff 355ef8e15885020da88f5ba2d85ce42b1d01f537 Wed Jun 26 15:02:32 CDT 2019 David Howells <dhowells@redhat.com> keys: Cache the hash value to avoid lots of recalculation

Cache the hash of the key's type and description in the index key so that
we're not recalculating it every time we look at a key during a search.
The hash function does a bunch of multiplications, so evading those is
probably worthwhile - especially as this is done for every key examined
during a search.

This also allows the methods used by assoc_array to get chunks of index-key
to be simplified.

Signed-off-by: David Howells <dhowells@redhat.com>
H A Dkey.cdiff 355ef8e15885020da88f5ba2d85ce42b1d01f537 Wed Jun 26 15:02:32 CDT 2019 David Howells <dhowells@redhat.com> keys: Cache the hash value to avoid lots of recalculation

Cache the hash of the key's type and description in the index key so that
we're not recalculating it every time we look at a key during a search.
The hash function does a bunch of multiplications, so evading those is
probably worthwhile - especially as this is done for every key examined
during a search.

This also allows the methods used by assoc_array to get chunks of index-key
to be simplified.

Signed-off-by: David Howells <dhowells@redhat.com>
H A Dkeyring.cdiff 355ef8e15885020da88f5ba2d85ce42b1d01f537 Wed Jun 26 15:02:32 CDT 2019 David Howells <dhowells@redhat.com> keys: Cache the hash value to avoid lots of recalculation

Cache the hash of the key's type and description in the index key so that
we're not recalculating it every time we look at a key during a search.
The hash function does a bunch of multiplications, so evading those is
probably worthwhile - especially as this is done for every key examined
during a search.

This also allows the methods used by assoc_array to get chunks of index-key
to be simplified.

Signed-off-by: David Howells <dhowells@redhat.com>