美好的一天。我想知道Android存储空间是否低,这会影响应用性能吗?因为同一个应用在另一台设备上运行速度很快,而同一个应用在另一台拥有12GB内存中有2GB可用内存的设备上却滞后了。两者都在同一台设备上,我只是想知道是否应该将其视为缺乏存储空间或我的应用存在问题?
2 GB of free memory (what you have) is good enough for any small or mid-sized app to perform alright. Problems may occur it the app is highly resource intensive and has a lot of run-time graphics load/unload. You should try checking and optimizing your app if it falls under the first category.
Here are a few official performance tips that might help you: [Link]
- Avoid Creating Unnecessary Objects
- Prefer Static Over Virtual
- Use Static Final For Constants
- Avoid Internal Getters/Setters
- Use Enhanced For Loop Syntax
- Consider Package Instead of Private Access with Private Inner Classes
- Avoid Using Floating-Point
- Know and Use the Libraries
- Use Native Methods Carefully
- Use Native Methods Judiciously
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.