You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/01/17 20:24:23 UTC

[jira] [Commented] (CB-5299) Make cordova prepare (much) faster

    [ https://issues.apache.org/jira/browse/CB-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13875147#comment-13875147 ] 

ASF subversion and git services commented on CB-5299:
-----------------------------------------------------

Commit 17a727d9d989ebb0713cc9974ba07700003fe777 in branch refs/heads/master from [~kamrik]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;h=17a727d ]

CB-5299 Cache pbxproj to avoid re-parsing it for each plugin.

Parsing pbxproj is very slow (~250ms on my machine). It is done for each plugin
that needs to add frameworks to the ios project. This change is a quick and
dirty fix to allow caching the parsed pbxproj object so that it can be reused for
multiple plugins during prepare.

Timings on a test project for cordova prepare ios:
before: 1.623s
after:  0.981s


> Make cordova prepare (much) faster
> ----------------------------------
>
>                 Key: CB-5299
>                 URL: https://issues.apache.org/jira/browse/CB-5299
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI, Plugman
>    Affects Versions: 3.1.0
>            Reporter: Braden Shepherdson
>            Assignee: Mark Koudritsky
>              Labels: performance
>
> Prepare (especially CLI's prepare) is stupidly slow. If you have a modest www/, half a dozen plugins, and the android and ios platforms installed, it takes a couple of seconds. It should be much faster than this.
> This bug exists to track my efforts to measure what's slow, and improve the speed.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)