Android (performance)

Source: Internet
Author: User

Data transfer

Conversion between object and byte stream

Why do you want to go? Persistence (forced to say, JVM non-operational), he processes (forced argument, other machine JVM, different JVM)

Parcelable and Serializable

Original intention:

Parcelable:serializable is inefficient and designed to transmit data efficiently between different components within a program and between different Android programs (AIDL).

These data exist only in memory, Parcelable is the carrier of messages that are communicated through IBinder.

Serializable: Save the properties of an object to a local file, database, network stream, RMI to facilitate data transfer, of course, this transfer can be within the program or can be between two programs.

One with memory, one with IO.

UI

Measure-layout-draw reduce the number of child controls

Viewpaper the number of simultaneous cached page numbers is less than 3. and buy a page to load the data or network when it is displayed, to avoid preloading

Picture decode into bitmap memory is multiplied, reducing size is the fundamental factor, allowing the server to provide different convenience rate pictures are good solutions

Thread pool

Adjust control network request frequency on business

Android (performance)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.