Skip to content

lib: reduce process.binding() calls

This commit reduces the amount of times process.binding() is called by better lazy loading the values and always using a variable to hold the value instead of loading it each time.

This is important because, in my benchmarks, running process.binding() is about 172 times slower as referencing a variable with the same value.

Merge request reports

Loading