android-mvvm-architecture icon indicating copy to clipboard operation
android-mvvm-architecture copied to clipboard

performDataBinding() take too much time

Open m-mirghafari opened this issue 6 years ago • 8 comments

Hi @amitshekhariitbhu... First, i would like to say thanks for your awesome lib

i have problem in my project. when i start new activity performDataBinding() take to much time (sometimes more than 5-6 sec) and new activity start so slow. what is the cause of this problem? & is there any way to fix this?

Thanks 👍

m-mirghafari avatar Jan 30 '19 09:01 m-mirghafari

Let us check

amitshekhariitbhu avatar Jan 30 '19 10:01 amitshekhariitbhu

@parsibit Could you please brief more, on which activity you are getting this issue? it will be also helpful for us if you could share your code where you are getting this problem!!

I had checked this sample app, run on my device and it is working fine for me.

anandwana001 avatar Jan 30 '19 10:01 anandwana001

it happened in all activities. in some of them take less time and in some more. (1-6 sec) i printed some log and It turned out that the problem is from this part:

mViewDataBinding = DataBindingUtil.setContentView(this, getLayoutId()); in performDataBinding()

m-mirghafari avatar Jan 30 '19 11:01 m-mirghafari

on which device you are running this sample app?

anandwana001 avatar Jan 30 '19 11:01 anandwana001

on which device you are running this sample app?

xiaomi mi5, huawei nova 3, android studio emulator

m-mirghafari avatar Jan 30 '19 11:01 m-mirghafari

my friend i have this problem too

fereydunRashidabadi avatar Jan 30 '19 11:01 fereydunRashidabadi

I am also facing the same issue, mviewDataBinding = DataBindingUtil.setContentView(this, getLayoutId());

kamaubrian avatar Jan 31 '19 19:01 kamaubrian

on which device you are running this sample app?

did you have any helpful suggestion?

m-mirghafari avatar Feb 01 '19 19:02 m-mirghafari