Fleet changelogs · dev.ecs0.net
rdmpw3265m-changelog-20260901-1820-ccache-shell-and-cache-optimization

rdmpw3265m-changelog-20260901-1820-ccache-shell-and-cache-optimization

Configured ccache compiler wrapper symlinks in zsh (Option A) and applied recommended performance settings on rdmpw3265m.

Scope

Exact Files Touched

Configuration Applied

~/.ccache/ccache.conf:

# ccache configuration
max_size = 25.0G
base_dir = /Users/richh/dev
sloppiness = time_macros,include_file_mtime,include_file_ctime,file_macro
compression = true
compression_level = 1
compiler_check = content
inode_cache = true

~/.zshrc:

# --- ccache compiler wrappers (portable across Apple Silicon & Intel) ---
if command -v brew >/dev/null 2>&1; then
  _ccache_libexec="$(brew --prefix ccache 2>/dev/null)/libexec"
  if [[ -d "$_ccache_libexec" ]]; then
    path=("$_ccache_libexec" $path)
  fi
  unset _ccache_libexec
fi

Verification Evidence

  1. Checked compiler binary resolution under interactive zsh:
    • which clang -> /usr/local/opt/ccache/libexec/clang
    • which gcc -> /usr/local/opt/ccache/libexec/gcc
    • which cc -> /usr/local/opt/ccache/libexec/cc
  2. Evaluated compilation caching:
    • Compiled test C snippet with clang -c: initial pass recorded miss, re-compile recorded direct cache hit (1 hit, 1 miss).
    • Verified active max cache size is 25.0 GB via ccache -s.

How to Undo

  1. Restore ~/.zshrc: cp ~/.zshrc.bak.20260901181927 ~/.zshrc
  2. Remove ~/.ccache/ccache.conf: rm ~/.ccache/ccache.conf