You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 487fbf4
Browse filesBrowse the repository at this point in the historyBrowse files
perf(env): read each process environment value once per reader (#43)
* perf(env): read each process environment value once per reader
Every read() and define() called getenv() through externalValue(), so defining
the roughly 160 catalog constants scanned the process environment several hundred
times per request. Memoize the lookup per name; the reader's own putenv() in
compatibility profiles invalidates the entry.
* docs(env): state the once-per-request sampling of process values
The invalidation in write() was unreachable: compatibility profiles never
consult the sampled values. Document the contract and pin it with a test.
0 commit comments