[Info-vax] Porting logical name applications to Unix

John Reagan johnrreagan at earthlink.net
Mon Sep 28 17:54:40 EDT 2009


"Bob Koehler" <koehler at eisner.nospam.encompasserve.org> wrote in message 
news:ceznAdBoufxH at eisner.encompasserve.org...
> In article <00A923BB.4839ED4B at SSRL.SLAC.STANFORD.EDU>, 
> winston at SSRL.SLAC.STANFORD.EDU (Alan Winston - SSRL Central Computing) 
> writes:
>>
>> They *can*, but in fact (on VMS, even) whether your C program will 
>> immediately
>> start acting on the updated translation depends on the setting of a C
>> runtime logical name.  (We got better performance from Apache when we had 
>> it
>> cache the translation rather than retranslating hundreds of thousands of
>> times).
>
>   What runtime logical name?  Unless the C RTL is going out of its way
>   to complicate things logical name translation for file opens are
>   done by RMS.
>

Alan is talking about the CRTL's caching of getenv() calls and whether it 
should do another $TRNLNM behind your back.  For certain things, a single 
translation once is all you need.  For other things, you'd actually want to 
translate again so be careful.

       Performance Optimizations:         default setting

          DECC$ENABLE_GETENV_CACHE        DISABLE
          DECC$LOCALE_CACHE_SIZE          0
          DECC$TZ_CACHE_SIZE              2





More information about the Info-vax mailing list