Android:Designing for Performance

•Avoid Creating Objects
•Use Native Methods
•Prefer Virtual Over Interface
•Prefer Static Over Virtual
•Avoid Internal Getters/Setters
•Cache Field Lookups
•Declare Constants Final
•Use Enhanced For Loop Syntax With Caution
•Avoid Enums
•Use Package Scope with Inner Classes
•Avoid Float
•Some Sample Performance Numbers
•Closing Notes

你可能感兴趣的:(android,cache,performance)