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.

Huge performance differences WRT tasks.json

See original GitHub issue

I have been using a tasks.json file in VS Code to compile my app and it looks like this:

{
	"version": "0.1.0",
	"command": "asconfigc",
	"isShellCommand": true,
	"args": [
		"--sdk=/Apache/royale-asjs"
	],
	"showOutput": "always"
}

When I compile with "debug": false in my asconfig.json, I’m getting about a 36 second compile time in my app (about 10 seconds with "debug": true).

When I remove the tasks.json file and let VS Code compile using the internal version of asconfigc, I’m getting about 80 second compile times for release. This is using the exact same asconfig.json file. It’s interesting to note that the build times when running an ant script is similar to the build times when I don’t have a tasks.json file defined. This makes me wonder if running the compiler from Java somehow slows down builds.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Feb 26, 2018

It’s certainly possible that starting up two instances of the JVM is slower. You could set nextgenas.asconfigc.useBundled to false, and it will use the Node version instead. This will probably perform similarly to your tasks.json.

If VSCode ever adds the ability to run a “command” as a task, I’ll be able to run asconfigc from the already running language server. It shouldn’t require starting Node or Java, so it should be faster than both.

0reactions
joshtynjalacommented, Mar 1, 2018

@Harbs I just discovered that you can customize the terminal.integrated.scrollback setting in VSCode to keep a longer terminal history.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tasks in Visual Studio Code
Integrate with External Tools via Tasks. Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems.
Read more >
NER Labelling: UI Performance issues with large tasks.json ...
When tasks.json is a larger file (>300KB), with approximately 6*60KB input texts, the UI responds very slowly. It takes about ~1-2 tasks just...
Read more >
Python vs Bash - In which kind of tasks each one outruns the ...
Performance. It depends on which programs the Bash shell script calls and their suitability for the subtask they are given whether the overall...
Read more >
IIS worker process: High CPU usage (Expert guide)
Is your IIS worker process experiencing poor performance due to high CPU usage? ... MVC action parameter binding, or serializing large JSON responses....
Read more >
Amazon RDS FAQs | Cloud Relational Database
There are important differences between these alternatives that may make one ... Amazon RDS automates the manual networking set up tasks such as...
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