Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Use native os.hostname rather than exec #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gcochard
Copy link

If getHostName is called repeatedly it will throw an EMFILE error, plus it takes on average 4ms per call. The native call takes on average .001ms per call.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant