Optimize environment lookup to happen once only #403

Merged
merged 1 commit into from Jan 3, 2013

Projects

None yet

2 participants

@mmalecki
Member
mmalecki commented Jan 3, 2013

process.env lookup results in a synchronous syscall to getenv(),
thus should be avoided in hot code.

Add request.debug to allow setting debugging mode at runtime.

@mmalecki mmalecki Optimize environment lookup to happen once only
`process.env` lookup results in a synchronous syscall to `getenv()`,
thus should be avoided in hot code.

Add `request.debug` to allow setting debugging mode at runtime.
b85bf63
@mikeal mikeal merged commit e51cc63 into request:master Jan 3, 2013
@mmalecki mmalecki deleted the mmalecki:optimize-env-lookup branch Jan 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment