question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow start script

See original GitHub issue

Node: v5.4.1 OS: OS X 10.11.5 / Darwin Stevens-MBP 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

I’ve narrowed it down to the detect-port library used. I tested out the library’s CLI and got similar results.

Added a timer to the start script:

console.time('detect')

detect(DEFAULT_PORT).then(port => {
  console.timeEnd('detect')
  ...
})

Result of running npm run start

/Users/steven/my_projects/autocomplete steven@Stevens-MBP% npm run start

> autocomplete@0.0.1 start /Users/steven/my_projects/autocomplete
> react-scripts start

detect: 75279.878ms

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

0reactions
sdn90commented, Aug 1, 2016

Working for me 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow logon (Running startup scripts...) - TechNet - Microsoft
Hi,. One of our client is having problems with one workstation where computer startup is were slow. Logon will take about 30-40 minutes...
Read more >
PowerShell steps to fix slow startup
When PowerShell starts to become slow at startup, an update of the .NET framework might be the cause. To speed up again, use...
Read more >
FAQ: Why Does The start.sh | status.sh Script Run Slow?
You observe the when running [DOMAIN_HOME]/bitools/bin/status.sh, it takes a long amount of time run. You may also observe that the managed ...
Read more >
Startup script too slow : r/PowerShell
Hello Guys, I have to run a script on all my computers. Mainly, a w10 trash app removal. I will be pushing this...
Read more >
Solved: Very slow in start of each script execution
Solved: Hi, I am Using TestComplete version 15. When I start executing each test case, it takes more than 5 min to start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found