Project: titanium
Issue TIMOB-20256: Windows: Reduce memory consumption at TitaniumKit startup
According to [Application Verifier|https://msdn.microsoft.com/en-us/library/windows/hardware/ff538115%28v=vs.85%29.aspx] for Windows Phone, bad memory allocation due to heap corruption and "out of memory" error has been observed. This may be a root cause of crash at application startup (TIMOB-20197). I'm observing that one of "out of memory" error occurs at {{Titanium::ApplicationBuilder}} constructor. Because we are instantiating every Titanium object in there, we may have a chance to reduce memory consumption by delaying instantiation of them. We might be able to instantiate them on demand.
Story points: 13