Open
Description
The Perl cookbook or Python cookbook could be a good source of inspiration.
- Declare lazily evaluated constant (lazy_static)
- Maintain global mutable state (lazy_static)
- Unzip a tarball to a temporary directory (temdir + tar + flate2)
- Dispatch work to a thread pool (threadpool)
- Fork a short-lived thread that cheaply references data from the original thread (crossbeam)
- Access a file randomly using a memory map (memmap)
- TODO evaluate this issue and generate more recipes