vscode-deploy-reloaded icon indicating copy to clipboard operation
vscode-deploy-reloaded copied to clipboard

Deploying a file takes ages

Open ivanvoznyakovsky opened this issue 6 years ago • 4 comments

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

  • Operating system: macOS 10.13.4
  • Visual Studio Code version: 1.24.0
  • Extension version: 0.75.0

ivanvoznyakovsky avatar Jun 12 '18 17:06 ivanvoznyakovsky

@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.

mkloubert avatar Jun 30 '18 21:06 mkloubert

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

ivanvoznyakovsky avatar Jul 02 '18 15:07 ivanvoznyakovsky

#60 #55 "useFastGlob": true, same. up to 20 seconds

Mordef avatar Jul 06 '18 09:07 Mordef

"fastCheckOnSave": true, looks fine

Mordef avatar Jul 06 '18 09:07 Mordef