Performance — Cache Fixes
Critical fix (both scripts)
- Fix
CHEATS_REBUILD=0bug: the value"0"is non-empty in bash, so[[ -n "$CHEATS_REBUILD" ]]was alwaystrue, causing a full re-index of all 158 cheatsheets on every run (every 30s Argos refresh + every click action). Changed toCHEATS_REBUILD="". Affects bothdevtoolbox-cheats.30s-separate-menu-DEV.shanddevtoolbox-cheats.30s.sh.
Additional fixes (DEV script only)
- Add
_CACHE_CHECKEDper-process guard inensure_cache()— prevents redundantfindmtime scans when action functions chain (e.g.standaloneMenu→browseAllCheatsFS) - Cache
get_screen_dims()in_SCREEN_DIMS_CACHED—xdpyinfo/xrandrqueried once per run, not on every dialog call - Cache
base64flag detection in_B64ENC_FLAGat startup — eliminatesbase64 --help | grepon everyb64enc()call (~158×/run in Argos expanded mode) - Remove redundant identity
awkpassthrough inargos_category_lines()and Argos expanded-mode loop
See CHANGELOG.md for full details.