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.

Time required to build and/or run a project is seemingly excessive

See original GitHub issue

I’m submitting a performance request

  • Library Version: 0.17.0

Please tell us about your environment:

  • Operating System: OSX 10.11

  • Node Version: 6.4.0

  • NPM Version: 3.10.6

  • Browser: Chrome 52.0.2743.116

  • Language: TypeScript

Current behavior: When executing au run, or au build it takes considerably longer to build my project than it did with gulp. The longest part of the build process is when it traces my src directory. Is there a configuration param that will speed things up a bit?

Expected/desired behavior:

  • What is the expected behavior? For au run to start up faster than it currently does. Preferably as fast as gulp did.
  • What is the motivation / use case for changing the behavior? Speeding up workflow. The bigger my project gets, the longer it takes. As of right now I have 15 small files in my src directory and it takes 30+ seconds before I can run my app.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:35 (19 by maintainers)

github_iconTop GitHub Comments

5reactions
3cpcommented, Nov 23, 2016

I waited too long for this to be fixed, so I spent some hours today and got a working fix!

Try this in your big project package.json to see if this solves your problem.

"devDependencies": {
    "aurelia-cli": "git://github.com/huochunpeng/cli.git#trace_cache",
    // ...
}

Surprisingly, the slowest part is not repeated parsing (to find out deps), it’s writeTransform. I did a profile, writeTransform consumes 85s of 110s (my project build time).

My fix includes:

  1. uses amodro-trace’s issue5-trace-cache branch (it caches deps), patch cli to use it, it reduces my build time from 125s to 110s on a project with 144 js files.
  2. patch amodro to use cached contents, it reduces build time to 32s.

@EisenbergEffect could someone from Aurelia try this before I submit a PR? https://github.com/huochunpeng/cli/tree/trace_cache

UPDATE: I confirm the patch works in au run --watch watch mode.

2reactions
EisenbergEffectcommented, Mar 3, 2017

Fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Andor Episode 8 Review: Star Wars Series Has a Huge Easter ...
Andor episode 8 is good, but as we watch humans literally build the cogs that make the machines of the Empire work, one...
Read more >
'Andor' Episode 9 Breakdown: The Empire Is Scarier Without ...
That they're seemingly mundane monsters only makes them more pernicious, more frightening, and more difficult to defeat. Evil is scarier without ...
Read more >
Andor (TV series) - Wikipedia
Andor, also known as Star Wars: Andor, is an American science-fiction action-adventure limited series created by Tony Gilroy for the streaming service ...
Read more >
Grown-up 'Star Wars' series 'Andor' struggles early on to find ...
With promises that this is a more “adult” “Star Wars” project, its story begins with its namesake character — Diego Luna's Cassian Andor, ......
Read more >
'Andor' Trailer Breakdown - Our Main Theories Going Into the ...
I think we are seeing a young Cassian Andor, who at the time goes by Kassa, who has just lost his parents in...
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