Directory caches.

This uses a rudimentary CPU speed check at launch to gate larger
cache sizes.  (This is on the theory that older systems or those
with weaker CPUs will struggle to walk the cache.)
This commit is contained in:
2026-07-30 03:36:45 -04:00
parent 9fa81dc171
commit 6788feba34
5 changed files with 77 additions and 22 deletions
+7
View File
@@ -2,6 +2,13 @@ _debug "Sourcing tcshrc.system.FreeBSD..."
set cshenv_sort_can_shuffle
set cshenv_speed_estimate=( `sysctl dev.cpu.0.freq` )
set cshenv_speed_estimate="${cshenv_speed_estimate[2]}"
if( ${cshenv_speed_estimate} > 400 ) then
set cshenv_gitdir_cache_size=256
endif
# Set the acknowledgement bit, essentially
setenv CSHENV_SYSTEM_CONFIGURED FreeBSD