Issue #1 new
Michael Diamond
repo owner created an issue

As suggested in, having a tiered cache would make common cases much faster than the several reads from disk that are currently required.

One potentially easy option would be to use /dev/smh before /tmp (but falling back to /tmp if /dev/smh is busted). Need to account for (and document?) /dev/smh behavior better, since previously I'd seen files randomly disappearing from under me.

Comments (2)

  1. Michael Diamond reporter

    Given the existence of BC_CACHE_DIR, and the potential for systems to configure their TMPDIR or /tmp directory to use tmpfs, this is probably not as important as I initially thought.

    We could experiment with heuristically using /dev/shm if it's a tmpfs (it's not on WSL) and the default cache directory is not, but it's not so bad for users to do this themselves.

  2. Log in to comment