Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    1f888eec
    Speed up building on sparc. Time taken is now almost half! This was · 1f888eec
    rtoy authored
    caused by all the calls to stat in PROBE-FILE in LOCATE-DOMAIN-FILE
    for files that did not exist.  The default locale was C, so every
    message lookup was causing many stat's to non-exist files.  (There
    were over 1000 calls/sec on a 750 MHz sparc!)
    
    So we cache all the calls to PROBE-FILE in LOCATE-DOMAIN-FILE.  But
    just in case, we also allow the user to get at the hash table to
    examine it (GET-DOMAIN-FILE-CACHE) and also allow the user to clear it
    (CLEAR-DOMAIN-FILE-CACHE) in case new translations are added without
    restarting lisp.
    1f888eec
    History
    Speed up building on sparc. Time taken is now almost half! This was
    rtoy authored
    caused by all the calls to stat in PROBE-FILE in LOCATE-DOMAIN-FILE
    for files that did not exist.  The default locale was C, so every
    message lookup was causing many stat's to non-exist files.  (There
    were over 1000 calls/sec on a 750 MHz sparc!)
    
    So we cache all the calls to PROBE-FILE in LOCATE-DOMAIN-FILE.  But
    just in case, we also allow the user to get at the hash table to
    examine it (GET-DOMAIN-FILE-CACHE) and also allow the user to clear it
    (CLEAR-DOMAIN-FILE-CACHE) in case new translations are added without
    restarting lisp.