我在我的android 5.1應用程序中使用版本1.3.1中的糖ORM。初始化糖ORM阻塞UI線程
今天,我注意到安裝我的應用程序後,糖ORM阻止約2.4秒的初始化UI線程。
有沒有辦法在後臺線程中完成這些東西來改進UX?
04-07 20:14:42.179 10407-10407/com.sample.app I/Sugar﹕ on create
04-07 20:14:44.354 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.358 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.358 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.360 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.362 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.365 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.366 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.368 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.370 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.372 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.373 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.375 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.377 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.378 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.380 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.381 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.383 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.385 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.389 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.390 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.392 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.395 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.397 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.399 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.400 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.402 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.402 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.405 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.406 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.407 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.407 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.408 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.409 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.410 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.411 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.412 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.413 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.414 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.415 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.415 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.416 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.417 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.418 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.418 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.421 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.421 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.422 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.422 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.423 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.423 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.424 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.425 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.426 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.427 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.427 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.429 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.429 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.430 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.431 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.431 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.432 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.432 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.506 10407-10407/com.sample.app I/Sugar﹕ create table
04-07 20:14:44.506 10407-10407/com.sample.app D/Sugar﹕ Fetching properties
04-07 20:14:44.507 10407-10407/com.sample.app I/Sugar﹕ creating table ARTICLE
似乎成爲一個功能:https://github.com/satyan/sugar/issues/269#issuecomment-90805581。任何解決方法是受歡迎的... –
沒有解決方法,沒有錯誤修復 - >我切換到ActiveAndroid:https://github.com/pardom/ActiveAndroid –