Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D40592007D0 for ; Tue, 10 May 2016 08:54:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D2A9F160A11; Tue, 10 May 2016 06:54:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 302481607AA for ; Tue, 10 May 2016 08:54:14 +0200 (CEST) Received: (qmail 69386 invoked by uid 500); 10 May 2016 06:54:13 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 69340 invoked by uid 99); 10 May 2016 06:54:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2016 06:54:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F12692C1F61 for ; Tue, 10 May 2016 06:54:12 +0000 (UTC) Date: Tue, 10 May 2016 06:54:12 +0000 (UTC) From: "Vladimir Kotikov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CB-11022) Adding plugins prepares platforms, which is redundant and slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 May 2016 06:54:15 -0000 [ https://issues.apache.org/jira/browse/CB-11022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Kotikov closed CB-11022. --------------------------------- Resolution: Fixed > Adding plugins prepares platforms, which is redundant and slow > -------------------------------------------------------------- > > Key: CB-11022 > URL: https://issues.apache.org/jira/browse/CB-11022 > 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 ", 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org