Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1362] Alloy: Long time build process

GitHub Issuen/a
Affected Version/sn/a
Fix Version/sn/a
Labelsbuild, cli
ReporterAndrey Tkachenko


I try to include [mathjs library](http://mathjs.org/) to my project. But have a long delay during compilation in step:
[INFO]  - android/math.js
[TRACE]   processing "builtins" module...
[TRACE]   processing "optimizer" module...
[TRACE]   processing "compress" module…
This step takes about 10 minutes …. ! It is sooooo looong! *Steps to reproduce:* 1. Create Alloy project 2. Download and add lib to the *app/lib* folder 3. Add *require('mathjs')* to the alloy.js 4. Build with command appc *run -p android -l debug -C "Google Nexus 4 - 4.2.2 - API 17 - 768x1280"*


  1. Mostafizur Rahman 2016-02-28

    Hello, I have tested the issue you reported. I have followed the steps. I created the lib directory and put the math.js file in there, and I required the module in alloy.js. It took me 5 minutes for app to launch in the emulator. Which is the natural launch time as the emulator need to boot up first. It was even faster the next time, as the emulator was already launched. The issue is not reproducible in our end. Maybe the issue is with your PC memory configuration. Thanks. *Test Environments:*
       Appcelerator Command-Line Interface, version 5.2.0
       Titanium SDK Version = 5.2.0 GA
       Appcelerator Studio, build:
       Emulator: Google Galaxy Nexus - 4.1.1 - API 16 - 720x1280
       Operating System
         Name                          = Mac OS X
         Version                       = 10.9.5
         Architecture                = 64bit
         CPUs                          = 4
         Memory                      = 8589934592
         Node.js Version               = 0.12.7
         npm Version                     = 2.11.3
       Appcelerator CLI
         Installer                             = 4.2.3
         Core Package                   = 5.2.0
       Titanium CLI
         CLI Version                      = 5.0.6
         node-appc Version           = 0.2.31
  2. Andrey Tkachenko 2016-02-28

    Other people in TiSlack community confirmed this issue. It happens with Alloy but not classic app. Build time on my PC without this lib is about 30 seconds. This delay (10min) present after emulator start. Project compilation paused in the step '*processing "compress" module…*' 30 seconds and 5..10 minutes it is big difference.
  3. Andrey Tkachenko 2016-02-28

    Geekbench 3 test (32-bit mode): Single-Core Score: 3439 Multi-Core Score: 10717 But my PC is 64-bit

JSON Source