Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory management method, apparatus and device, and computer readable storage medium

A technology of memory management and memory, applied in the field of information processing, can solve the problem of continuous high memory, achieve the effect of reducing consumption and reducing the probability of overflow

Active Publication Date: 2018-11-06
BEIJING 58 INFORMATION TTECH CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Specifically: sort the contents of the cache according to the last usage time. When the memory is insufficient and part of the space needs to be released, the cache with the lowest usage rate is released to relieve the tension of the memory space, but at least there are the following defects: when the cache When the content does not reach the peak value, the cache is not released, causing the memory to remain high

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 management method, apparatus and device, and computer readable storage medium
  • Memory management method, apparatus and device, and computer readable storage medium
  • Memory management method, apparatus and device, and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0080] In order to illustrate the embodiment of the method of the present invention in more detail, Example 1 is given. Image 6 It is a schematic diagram of the page life cycle of Example 1 of the method embodiment of the present invention, in Image 6 The life cycle of the page activity is shown in , followed by creating onCreate, running on Resume, stopping on Pause, and destroying on Destroy. Specifically, Example 1 includes the following steps:

[0081] Step 1: When the page life cycle is on Create, create a Vector collection in the base class of the app page to store all the network image loading addresses used in this page.

[0082] Step 2: When the page life cycle is on Resume, customize the image loading control, and change the set network image size to a size similar to the size of the image control on the mobile phone screen.

[0083] Figure 7 It is a schematic diagram of a specific implementation process of step 2 in the method embodiment example 1 of the prese...

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 present invention provides a memory management method, apparatus and device, and a computer readable storage medium. The memory management method comprises: creating a page of an application; whenrunning the page, caching the desired image of the page into the memory; and when destroying the page, deleting the desired image of the page cached in the memory. According to the technical scheme of the present invention, by deleting the desired image of the page cached in the memory when destroying the page, the page image in the memory can be released in a timelier manner, the memory consumption is reduced, and the probability of the memory overflow is reduced.

Description

technical field [0001] The present invention relates to the field of information processing, in particular to a memory management method, device, equipment and computer-readable storage medium. Background technique [0002] LRU (Least Recently Used, the least recently used algorithm) is a page replacement algorithm for memory management. For data blocks (memory blocks) that are in memory but not used, they are called LRU. The operating system will move them out according to which data belongs to LRU. The memory thus frees up space to load additional data. [0003] In the prior art, a reasonable maximum memory value is calculated according to the actual memory numbers of different mobile phones, and these memory spaces are maintained through an LRU algorithm. Specifically: sort the contents of the cache according to the last usage time. When the memory is insufficient and part of the space needs to be released, the cache with the lowest usage rate is released to relieve the ...

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/50
CPCG06F9/5016
Inventor 宋曦
Owner BEIJING 58 INFORMATION TTECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products