fix(perf): reduced initial start time#4818
Merged
alexander-akait merged 2 commits intomasterfrom Apr 15, 2023
Merged
Conversation
alexander-akait
commented
Apr 15, 2023
| static internalIPSync(family) { | ||
| try { | ||
| const { gateway } = defaultGateway[family].sync(); | ||
| const { gateway } = require("default-gateway")[family].sync(); |
Member
Author
There was a problem hiding this comment.
We use only one method or async or sync, so it is fine to use require
Member
Author
There was a problem hiding this comment.
Also we don't it when a developer provide IP, so avoid it for some cases
alexander-akait
commented
Apr 15, 2023
| }; | ||
| }; | ||
|
|
||
| const getExpress = memoize(() => require("express")); |
Member
Author
There was a problem hiding this comment.
Yeah, we always run express, but let's do it lazy
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4818 +/- ##
==========================================
+ Coverage 90.45% 92.10% +1.65%
==========================================
Files 16 16
Lines 1665 1673 +8
Branches 624 625 +1
==========================================
+ Hits 1506 1541 +35
+ Misses 145 121 -24
+ Partials 14 11 -3
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Bugs and Features; did you add new tests?
No need
Motivation / Use-Case
Start faster
Breaking Changes
No
Additional Info
No