[
https://issues.apache.org/jira/browse/CB-11865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15512533#comment-15512533
]
Vladimir Kotikov commented on CB-11865:
---
Yeah, but the size might be the culprit. Typically platform repo has its dev
dependencies installed, which increases size of {{node_modules}} dramatically
(in fact, from 4 to 50 megabytes, see attached screenshots). For me after doing
{{git clean -xdf}} in platform repo it takes even less time to install from
local folder rather than from NPM. Below are my timings:
{noformat}
// on a fully installed repo, after npm install
➜ baz time cordova platform add ../cordova/cordova-ios
cordova platform add ../cordova/cordova-ios 3.94s user 2.66s system 105% cpu
6.237 total
// after doing git clean -xdf, only production dependencies installed
➜ baz time cordova platform add ../cordova/cordova-ios
cordova platform add ../cordova/cordova-ios 1.85s user 0.39s system 116% cpu
1.922 total
// from NPM
➜ baz time cordova platform add ios
cordova platform add ios 3.11s user 0.74s system 109% cpu 3.524 total
{noformat}
> Unusually long time to create project from 'cordova platform add' using a
> local path
>
>
> Key: CB-11865
> URL: https://issues.apache.org/jira/browse/CB-11865
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
>Reporter: Shazron Abdullah
>Priority: Critical
> Labels: triaged
>
> On my system, when installing a platform from a local path, it took 43s.
> Adding the ios platform from npm took 12s. A 3.6x slowdown.
> Investigate where the bottleneck is.
> {code}
> cordova create t t t
> cd t
> cordova platform add path/to/local/platform-ios
> {code}
> Using the --verbose flag, the step that takes the longest time is at:
> "Copying iOS template project to /Users/shaz/Desktop/t/platforms/ios"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org