mkloubert / vscode-deploy-reloaded

Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-deploy-reloaded
GNU Lesser General Public License v3.0
163 stars 39 forks source link

Deploying a file takes ages #72

Open ivanvoznyakovsky opened 6 years ago

ivanvoznyakovsky commented 6 years ago

Description

Deploying a single file takes at minimum 30sec whereas vs-deploy does it immediately.

{
    "deploy.reloaded": {
      "targets": [
        {
           "type": "ftp",
           "dir": "/public_html",
           "host": "...",
           "port": 21,
           "secure": false,
           "user": "...",
           "password": "...",
           "mappings": {
              "/sources/**/*": "/"
            }
        }
      ]
    }
}

Logs

INFO extension.deploy.reloaded.loadplugins - [12/Jun/2018:17:42:03 +0000] "Loaded 19 plugins:
- app
- azureblob
- batch
- compiler
- dropbox
- each
- ftp
- list
- local
- mail
- map
- prompt
- s3bucket
- script
- sftp
- slack
- switch
- test
- zip
"
INFO extension.deploy.reloaded.loadplugins - [12/Jun/2018:17:45:49 +0000] "Loaded 19 plugins:
- app
- azureblob
- batch
- compiler
- dropbox
- each
- ftp
- list
- local
- mail
- map
- prompt
- s3bucket
- script
- sftp
- slack
- switch
- test
- zip
"

Your environment

mkloubert commented 6 years ago

@ivanvoznyakovsky

Sorry for the late answer!

I have added a useFastGlob in version 0.80.0 as global, package and/or target settings, which can help to speed up the deployment.

{
    "deploy.reloaded": {
      "targets": [
        {
           // ...

           "useFastGlob": true,

           "mappings": {
              "sources": "/",
              "sources/**/*": "/"
            }
        }
      ]
    }
}

If you use the new setting(s), you have to change your patterns, by removing leading /, e.g., because fast-glob works a little bit different.

An alternative is to use "fast file check" as described in that issue opened by @carlosesilva.

ivanvoznyakovsky commented 6 years ago

@mkloubert great. thnx, I'll try that out

Mordef commented 6 years ago

60 #55

"useFastGlob": true, same. up to 20 seconds

Mordef commented 6 years ago

"fastCheckOnSave": true, looks fine