github dominatos/devtoolbox-cheats v1.4.9
v1.4.9 — Performance: Cache Fixes

latest release: v1.4.10
3 hours ago

Performance — Cache Fixes

Critical fix (both scripts)

  • Fix CHEATS_REBUILD=0 bug: the value "0" is non-empty in bash, so [[ -n "$CHEATS_REBUILD" ]] was always true, causing a full re-index of all 158 cheatsheets on every run (every 30s Argos refresh + every click action). Changed to CHEATS_REBUILD="". Affects both devtoolbox-cheats.30s-separate-menu-DEV.sh and devtoolbox-cheats.30s.sh.

Additional fixes (DEV script only)

  • Add _CACHE_CHECKED per-process guard in ensure_cache() — prevents redundant find mtime scans when action functions chain (e.g. standaloneMenubrowseAllCheatsFS)
  • Cache get_screen_dims() in _SCREEN_DIMS_CACHEDxdpyinfo/xrandr queried once per run, not on every dialog call
  • Cache base64 flag detection in _B64ENC_FLAG at startup — eliminates base64 --help | grep on every b64enc() call (~158×/run in Argos expanded mode)
  • Remove redundant identity awk passthrough in argos_category_lines() and Argos expanded-mode loop

See CHANGELOG.md for full details.

Don't miss a new devtoolbox-cheats release

NewReleases is sending notifications on new releases.