-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: move complete
to its own file
#54989
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54989 +/- ##
==========================================
+ Coverage 88.06% 88.08% +0.01%
==========================================
Files 652 653 +1
Lines 183545 183705 +160
Branches 35854 35853 -1
==========================================
+ Hits 161648 161818 +170
+ Misses 15146 15139 -7
+ Partials 6751 6748 -3
|
@nodejs/repl |
528fa83
to
5a62c67
Compare
Moving these to new files will have an impact on node.js startup time. |
@anonrig How much of an impact? It is negligible? |
Why would that be? |
Please run the startup benchmark for the impact. |
I don't think
|
Hey, any more notes on the performance of this change? I don't think there's a perf impact IMO. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really seeing a lot of value in this change
Why? The REPL file is giant, wouldn't de-cluttering it be a good thing? IMHO we don't need all these functions in a single file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @jasnell. There is no benefit of this change.
Because you insist, I'm closing this. |
This PR moves a large function from
repl.js
into it's own file,internal/repl/complete.js
. This is an attempt to slowly declutter the file.