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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user