logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Description

get-hash provides usage specifics of a <hash> (created by new-hash). Use "length" clause to obtain its <length> (i.e. the number of elements stored in it), "hash-size" clause to obtain its <hash size> (i.e. the number of "buckets", or possible hash codes in the underlying hash table). "average-reads" clause will obtain in <reads> the average number of reads (i.e. how many string comparisons are needed on average to find a key) multiplied by 100 (so if an average number of reads was 1.5, it will be 150). This information may be useful in determining the performance of a hash, and whether resize-hash is indicated.

Examples

get-hash h length l hash-size s average-reads r

Name

get-hash - (hash)

Purpose

Get usage specifics for a hash.

See Also

Hash get-hashnew-hashpurge-hashread-hashresize-hashwrite-hash See all documentation $DATE $VERSION GOLF(2gg)

Syntax

get-hash <hash > \ ( length <length> ) \ | ( hash-size <hash size> ) \ | ( average-reads <reads> )

See Also