with-group-cache ( quot -- )


Vocabulary
unix.groups

Inputs and outputs
quota quotation


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