cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-11022) Adding plugins prepares platforms, which is redundant and slow
Date Thu, 14 Apr 2016 09:07:25 GMT


ASF subversion and git services commented on CB-11022:

Commit 9b8558dbde7ae08747c555c07f3d1a71ef67eac8 in cordova-android's branch refs/heads/master
from [~vladimir.kotikov]
[;h=9b8558d ]

CB-11022 Duplicate www files to both destinations on plugin operations

This closes #289

> Adding plugins prepares platforms, which is redundant and slow
> --------------------------------------------------------------
>                 Key: CB-11022
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>            Reporter: Jason Ginchereau
>            Assignee: Vladimir Kotikov
>              Labels: triaged
> For CB-9617, a change was made to automatically do a 'cordova prepare' operation after
adding every plugin. As part of the prepare, all the files from the project's www directory
are re-copied into the platform_www directory. For a large project with lots of source files,
images, and other resources, this copy operation is potentially time-consuming. And it is
redundant and unnecessary when adding a plugin, because those files do not need to be changed
when adding a plugin.
> For a large project with many plugins, this slow redundant operation is repeated for
every plugin, making the first-time build (installing all the plugins) take a very long time.
As an extreme case, a customer reported their large project (35 plugins, ~150 MB in www) takes
about 2 hours to build the first time. Most of that time is spent repeatedly preparing the
platforms after adding each plugin. The log line that appears to be slow says it is "Generating
config.xml from defaults for platform <platform>", but what it is actually doing is
redundantly copying lots of files from www.
> This issue can also be observed at a smaller scale when building the Cordova mobilespec
project, which contains tests for all the core plugins. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message