Method and system for allocating memory when application starts 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, increased startup time, and reduced user experience, so as to reduce startup time, reduce the number of garbage collections, and improve startup animations effect of smoothness

Active Publication Date: 2019-10-22
BANMA ZHIXING NETWORK HONGKONG CO LTD
View PDF4 Cites 0 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
  • Method and system for allocating memory when application starts in terminal
  • Method and system for allocating memory when application starts in terminal
  • Method and system for allocating memory when application starts 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

Disclosed are a method for memory allocation during application start in a terminal and a system thereof, relating to terminal application technologies. On the basis of the recorded size of a Java heap actually allocated after every start of an application, a predicted value of the Java heap at the time of next start of the application is computed (102), and initial allocation of the Java heap for the application is performed on the basis of the predicted value of the Java heap when the application is started next time (103). The frequency of garbage collection during application start is effectively reduced without increasing total memory, thereby decreasing the time for application start and improving the smoothness of start animations.

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 Patents(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