编写高效的Android代码
2011-03-16 19:33
351 查看
最近看了这篇文章,je上搜了下还好几篇博客。
编写高效的Android代码:http://lcs353732057.javaeye.com/blog/458511
避免建立对象
使用本地方法
使用实类比接口好
用静态方法比虚方法好 // 难道要直接用面向过程的方法实现
不用getter和setter // 封装性也不管了
将成员变量缓存到本地
避免使用枚举
....
避免使用浮点数 // 不精确也不管?
真的要这么斤斤计较吗? 个人认为真的没有必要,大家说呢
编写高效的Android代码:http://lcs353732057.javaeye.com/blog/458511
避免建立对象
使用本地方法
使用实类比接口好
用静态方法比虚方法好 // 难道要直接用面向过程的方法实现
不用getter和setter // 封装性也不管了
将成员变量缓存到本地
避免使用枚举
....
避免使用浮点数 // 不精确也不管?
真的要这么斤斤计较吗? 个人认为真的没有必要,大家说呢
相关文章推荐
- 编写高效的android代码
- 编写高效的Android代码
- 编写高效的android代码(译文)
- 编写高效的android代码
- 编写高效的Android代码
- 编写高效的Android代码
- 编写高效的android代码(译文)
- 编写高效的android代码
- 如何在Android上编写高效的Java代码
- android-基础知识:编写高效的android代码
- 编写高效的Android代码
- [转]编写高效的Android代码?
- 编写高效的Android代码
- 编写高效Android代码
- 编写高效的android代码(译文)
- Android开发之如何编写高效的Android代码?
- 编写高效的Android代码(提高运行速度,节省电量)
- 编写高效的Android代码
- 编写高效的android代码
- 编写高效的Android代码