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