0

In one presentation deck of Reto Meier, I read his suggestion to prefer virtual methods over interface but there were no more explanation. Apart from the runtime overhead is there anything else which specifically hurts app performance in android ? Because to make code more flexible and readable I heavily use interface in my android project.

4

1 回答 1

3

当今设备的性能成本微不足道。该建议适用于 4 年前的设备,例如 G1,其 CPU 速度要慢得多。使您的代码更具可读性和可维护性,并且不要为这种优化而烦恼

于 2013-05-27T09:51:17.667 回答