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

Data caching method and electronic equipment

An electronic device and data caching technology, which is applied in the field of communication, can solve the problems of small memory block storage capacity, frequent application and release of memory blocks, and low data storage performance, so as to achieve the effect of improving performance

Pending Publication Date: 2022-01-21
CHINA MOBILE SUZHOU SOFTWARE TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This implementation method has the problem that the length of the array cannot be dynamically expanded, or the storage capacity of the memory block requested when using the linked list is small, and frequent application and release of memory blocks is required, resulting in low data storage performance.

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
  • Data caching method and electronic equipment
  • Data caching method and electronic equipment
  • Data caching method and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0051] In related technologies, the method adopted when the data caching method is implemented using the data structure of an array or a linked list is:

[0052] Implemented with an array. First apply for a fixed-size array. Then set two pointers, head and tail respectively. head points to the location of the next read, and tail points to the location of the next write. Every time the produc...

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 a data caching method and electronic equipment. The data caching method comprises the following steps: establishing an annular linked list based on N memory blocks, wherein N is an integer greater than or equal to 2, the storage capacity of N memory blocks contained in the annular linked list is greater than the storage capacity of other memory blocks in the electronic equipment; and executing data writing and / or data reading processing based on the annular linked list, at least comprising one of the following processing modes: during data writing, if the memory block corresponding to the annular linked list is fully written, selecting an idle memory block from an idle list as a newly added memory block in the annular linked list, and writing data in the newly added memory block, and when data are read, taking out a first memory block from the at least one fully-written memory block corresponding to the annular linked list, and reading data from the first memory block. Therefore, the dynamic expansion of the annular linked list is realized, the frequency of releasing the memory blocks is reduced, and the performance of data caching is improved.

Description

technical field [0001] The present disclosure relates to the technical field of communications, and in particular to a data buffering method and electronic equipment. Background technique [0002] When transferring data between different software function modules in the same software system, a data cache module or a message queue needs to be used. The data cache module can not only cache data, but also for asynchronous data cache, can make the two modules almost independent of each other, and can achieve efficient decoupling and isolation. [0003] At present, the commonly used data cache is RingBuffer with fixed length and logical end-to-end connection. The bottom layer is generally implemented by array or linked list data structure. Such an implementation has the problem that the length of the array cannot be dynamically expanded, or the storage capacity of the memory block requested when using the linked list is small, requiring frequent application and release of memory...

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/52G06F9/54G06F12/0806
CPCG06F9/526G06F9/544G06F9/546G06F12/0806
Inventor 刘肃权
Owner CHINA MOBILE SUZHOU SOFTWARE TECH 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