Rich-text Reply

Android startup time

Jatra 03-07-16

Android startup time

Does Optimizely scan through every class looking for LiveVariables when it is started up?

For large apps, that could take a significant time - and also potentially mean every class needs to be loaded

Level 1

DavidS 03-15-16
 

Re: Android startup time

Hi Jatra,

 

Thanks for reaching out!

I understand that you would like to know how Optimizely initializes Live Variables, and especially its effect.

 

Live Variables are initialized when the class is created. This means that Optimizely doesn't scan through every class looking for Live Variables on startup.

 

It is not needed to initialize all Live Variables at the start of the app. You can put Live Variables in different view controllers/activities. This will help reduce startup time and make sure that Live Variables in your app are initialized when needed. 

 

Best,
David

 

Optimizely