Memory allocation method and system during starting of application in terminal

A technology for application startup and memory allocation, applied in the field of memory allocation methods and systems, can solve problems such as stuck startup animations, reduced user experience, and increased startup time, so as to reduce startup time, reduce the number of garbage collections, and improve startup animations effect of smoothness

Active Publication Date: 2016-10-05
BANMA ZHIXING NETWORK HONGKONG CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The advantage of this is that it does not waste memory, but there is a disadvantage that it will reduce the user experience when the application starts
During the startup phase of the application, this mechanism will trigger garbage collection. Garbage collection has a time cost, which will increase the startup time and cause the startup animation to freeze

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory allocation method and system during starting of application in terminal
  • Memory allocation method and system during starting of application in terminal
  • Memory allocation method and system during starting of application in terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In the following description, many technical details are proposed in order to enable readers to better understand the application. However, those skilled in the art can understand that without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in each claim of the present application can be realized.

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe the implementation of the present invention in detail in conjunction with the accompanying drawings.

[0025] The first embodiment of the present invention relates to a memory allocation method when an application is started in a terminal. figure 1 It is a schematic flowchart of the memory allocation method when the application starts in the terminal. It can be understood that the above-mentioned terminal may be a smart phone, a tablet computer, a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a terminal application technique, and discloses a memory allocation method and system during starting of an application in a terminal. The method includes: calculating a Java heap predicted value of the next starting of the application according to the recorded actual allocated Java heap after starting of the application; and initially allocating a Java heap to the application during the next starting of the application according to the Java heap predicted value. According to the memory allocation method and system, the number of times of garbage collection can be effectively reduced during starting of the application on the premise that the total amount of memory is not increased, the starting time of the application can be shortened, and the smoothness of a starting animation can be improved.

Description

technical field [0001] The invention relates to terminal application technology, in particular to a memory allocation method and a system thereof when an application is started in a terminal. Background technique [0002] In an android or an android-like system, the user experience when the application starts is mainly reflected in the length of the application startup time and the smoothness of the application startup animation. These two aspects are related to the size and allocation method of memory when the application starts. In the case of limited memory, applications with high memory requirements, such as games, may face user experience problems such as long startup time and startup animation lag. [0003] In the android system, when each application starts, the system will allocate a block of size S 0 The Java heap memory space is used to store related data such as Java class objects dynamically generated when the program starts and runs. The Java heap is managed ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 朱光宇
Owner BANMA ZHIXING NETWORK HONGKONG CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products