Search code examples
androidandroid-databinding

Aren't Databinding generated classes memory heavy?


Whenever I see any databinding generated class (for eg, ActivityHomeBindingImpl.java), I can see atleast a few String[], int[], SparseIntArrays, WeakReference<ViewDataBinding>, a few static classes and a LiveDataListener.

My question is, for small layouts aren't these generated classes Memory heavy?

Any insights would be helpful.


Solution

  • They apear in the build folder so the short answer is No.

    They might increase the compile time. But I don't think it would affect your apk.