with-user-cache ( quot -- ) (original) (raw)
Inputs
quot | a quotation |
---|
Outputs
None
Word description
Iterates over the password file using library calls and creates a cache in the user-cache symbol. The cache is a hashtable indexed by user id. When looking up many users, this approach is much faster than calling system calls.
Definition
: with-user-cache ( quot -- )
[ user-cache ] dip with-variable ; inline