Titanium JIRA Archive
Alloy (ALOY)

[ALOY-3] eval() of DOM scripts at app startup increasing initial load time significantly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:07.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
ComponentsRuntime
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-05-14T09:48:50.000+0000
Updated2012-07-19T11:52:07.000+0000

Description

Just as the ticket states, Android is less efficient when it comes to eval() code at runtime, and for this reason, seconds are being added on the load time of an app no matter what the developer does. The only way to avoid this is going to be loading these DOM scripts as commonjs modules (or some other wrapper) so that we don't incur the overhead of the eval().

Comments

  1. Tony Lukasavage 2012-05-18

    Check these commits for details: * [https://github.com/appcelerator/ZipTi/commit/6e39ebffd41983b14b08e97cb04bdd7bc4e93742](https://github.com/appcelerator/ZipTi/commit/6e39ebffd41983b14b08e97cb04bdd7bc4e93742) * [https://github.com/appcelerator/ZipTi/commit/904aa1bcc185eb01113b25a8375128fcbee9f3fd](https://github.com/appcelerator/ZipTi/commit/904aa1bcc185eb01113b25a8375128fcbee9f3fd)
  2. Russell McMahon 2012-05-18

    Awesome!

JSON Source