[TIMOB-19186] Windows: Optimize Titanium::getAppInfo()
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-07-08T08:11:06.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | n/a |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2015-07-07T19:00:52.000+0000 |
| Updated | 2017-03-16T22:07:37.000+0000 |
Description
Currently
Titanium::getAppInfo attempts to load _app_info_.json even if previous attempts failed to load it, because it didn't exist.
It also loads it multiple times, once per property, rather than just reusing the parsed json.
It shouldn't
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/361// Load _app_info_.json if (json.IsUndefined()) { // this should stop that happening? json = loadJson(get_context().get_global_object());Closing ticket as fixed.