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

Image data caching method

A data caching and caching technology, which is applied in the fields of electrical digital data processing, special data processing applications, memory systems, etc. The effect of experience

Active Publication Date: 2017-06-06
INSPUR COMMON SOFTWARE
View PDF13 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When loading and displaying pictures over the Internet in an Android application, for user experience and saving traffic, the picture cache must be used. The cached picture can also quickly display the picture on the UI, which plays a very important role in improving the user experience. However, the existing image loading methods are relatively backward and not very practical

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
  • Image data caching method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0030] as attached figure 1 As shown, a picture data caching method realizes picture caching through a memory cache and an SD card cache, wherein the memory cache includes two levels, and the SD card cache includes a level of cache. The specific implementation process is as follows:

[0031] A: First, open up a cache space in the memory, which occupies about one-eighth of the memory allocated by each application. This cache uses the LRU algorithm and uses strong reference types to store data, that is, as long as there are key values, the corresponding entity can be found , the function is to quickly retrieve the most frequently used entities.

[0032] Use the LRU algorithm to create a storage space with limited space that can store strong references. Used to store data obtained from network requests.

[0033] B: Open up a second-level cache ...

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 discloses an image data caching method. The image cache is realized through memory cache and SD(Secure Digital) card cache. The memory cache comprises two levels of cache, and the SD card cache comprises a layer of cache. The specific realization process is that firstly a caching space is opened up in the memory, the cache stores the data through a strong reference type, the caching space is an eighth of the memory allocated for each application; a second-level caching space is opened up in the memory, so as to store the cache removed from the first-layer memory through the soft reference type; then a catalogue is established in the SD card to store the image data obtained through network request; and finally the data are read. Compared with the prior art, the image data caching method has the advantages of realizing a caching method including the memory cache and the SD card cache through LRU(Least Recently Used) algorithm, being capable of conveniently and rapidly showing the cached image in UI(User Interface) interface, improving user experience, saving flow and strong practicability.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a picture data caching method. Background technique [0002] LRU, the full name of Least Rencetly Used, which is the least recently used, is a very commonly used replacement algorithm, that is, objects that have not been used for the longest time are eliminated. LRU is widely used in the page replacement algorithm in the operating system. Our memory or cache space is limited. When a new object is added, our cache space is insufficient. Data is eliminated or deleted, and LRU chooses to eliminate objects that have not been used for the longest time. [0003] According to the idea of ​​the LRU algorithm, the core of implementing LRU is to have a data structure that can save the objects in the cache based on the access order, so that we can easily know which object is the most recently accessed and which object is the longest unvisited. LruCache chooses the data stru...

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
IPC IPC(8): G06F17/30G06F12/0897G06F12/0895G06F12/123
CPCG06F12/0875G06F12/0895G06F12/0897G06F12/123G06F16/9574G06F2212/455
Inventor 于富昌
Owner INSPUR COMMON SOFTWARE
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