There is one problem in the project that can be solved in two ways. But I can not estimate which way will be "cheaper" for memory.
How to correctly calculate on an Android device, how much do certain objects weigh in java?
PS In one case, it is an array of List from other objects, which in turn contain other objects, in the other it is a subscriber from Rx.
PS2: Perhaps there are some other ways to assess the speed of performance or occupied by objects of memory, in addition to the trivial calculation of differences in time / memory spent before and after in both cases?