BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
256 stars 39 forks source link

Improving compilation times #720

Closed velara3 closed 9 months ago

velara3 commented 9 months ago

I'm compiling a basic as file to js and my compile times are around 30 seconds for debug and 32 seconds for release (on an older computer at this point).

So far the as file is very basic. Is there anything I can do to decrease compile time?

My asconfig:

{
    "config": "js",
    "compilerOptions": {
        "debug": true,
        "source-path": [
            "src"
        ],
        "js-output": "/public/js",
        "html-template": "template.html",
        "source-map": true
    },
    "mainClass": "LoginApp"
}

I want to add, during development, I don't care about optimizations or any other features. If there is a quickest export option I want that.

joshtynjala commented 9 months ago

You can try this:

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/Quicker-debugger-builds-for-ActionScript-projects-in-Visual-Studio-Code

The first build will probably take just as long, but subsequent builds should be a bit faster.

velara3 commented 9 months ago

Quick debug seems to run faster. Thanks! If I'm reading the debug build time correctly it's around 3 seconds to build (but the message is cleared nearly instantly since it seems to also trigger a restart of the node server).