Unlock instant, AI-driven research and patent intelligence for your innovation.

A buffer array regularization method, device, terminal and readable medium

A technology for regularizing and buffering queues, applied in terminals and readable media, buffer array regularizing methods, and devices, can solve problems such as data loss, long operation time, and low efficiency of buffer array regularization

Active Publication Date: 2021-03-12
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This one-by-one migration of large batches of data takes a long time and is slow, resulting in low buffer array regularization efficiency.
In addition, when the data in the buffer array is updated quickly, there will be data loss caused by the replacement of the original data by the new data before the buffer array is finished.

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
  • A buffer array regularization method, device, terminal and readable medium
  • A buffer array regularization method, device, terminal and readable medium
  • A buffer array regularization method, device, terminal and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 It is a flow chart of a buffer array regularization method provided by Embodiment 1 of the present invention. This embodiment is applicable to buffer array regularization. The method can be implemented by a terminal, specifically through software and / or hardware in the terminal. see figure 1 , the buffer array regularization method includes the following steps:

[0048] S110. Receive the regularization instruction, scan the cache queues in the cache queue group corresponding to the buffer array according to the regularization instruction, and when the data information in the buffer array is updated, migrate the updated data information to the cache in the cache queue group in queue.

[0049] Wherein, the regularization instruction may be an instruction generated by the user by pressing a physical button of the terminal or a virtual button on the terminal screen. Among them, the regularization instruction can also be generated after the underlying program aut...

Embodiment 2

[0090] figure 2 It is a structural schematic diagram of a buffer array regularization device provided in Embodiment 2 of the present invention. This embodiment is applicable to buffer array regularization.

[0091] see figure 2 , the buffer array regularization device in this embodiment includes:

[0092] The cache queue scanning module 210 is used to receive the regularization instruction, scan each cache queue in the cache queue group corresponding to the buffer array according to the regularization instruction, wherein when the data information in the buffer array is updated, the updated data information is migrated to In the cache queue in the cache queue group;

[0093] The data is added to the linked list object module 220, which is used to add the data information to the predefined linked list object when the scanned data information is not empty, and clear the scanned cache queue;

[0094] The data is stored in the temporary array module 230. When each cache queue...

Embodiment 3

[0119] This embodiment provides a terminal that can be used in the case where the buffer array is regularized. image 3 It is a schematic structural diagram of a terminal provided in Embodiment 3 of the present invention. see image 3 , the terminal includes:

[0120] one or more processors 310;

[0121] memory 320, for storing one or more programs;

[0122] When the one or more programs are executed by the one or more processors 310, the one or more processors 310 implement the buffer array regularization method as proposed in the first embodiment.

[0123] image 3 Take a processor 310 as an example; the processor 310 and the memory 320 can be connected through a bus or in other ways, image 3 Take connection via bus as an example.

[0124] As a computer-readable storage medium, the memory 320 can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the buffer array regularization method in ...

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 embodiment of the present invention discloses a buffer array regularization method, device, terminal and readable medium, wherein the method includes: scanning each cache queue in the cache queue group corresponding to the buffer array according to the received regularization instruction, wherein the cache queue It can store the data information after each update in the buffer array; when the scanned data information is not empty, add the data information to the predefined linked list object; when the scanning of each cache queue in the cache queue group ends, get The data information in the linked list object is stored in the temporary array; when all the data information in the linked list object is stored in the temporary array, the data information of the temporary array is returned to the buffer group number. The buffer array regularization method, device, terminal and readable medium provided by the embodiments of the present invention realize buffer array regularization, improve buffer array regularization efficiency, and avoid data loss during the regularization process.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a buffer array regularization method, device, terminal and readable medium. Background technique [0002] In the Android terminal, it is often necessary to open up a data stream buffer area (such as a buffer array) to buffer the data stream, and often need to normalize the buffer array to facilitate operations such as reading data in the data stream. Among them, the regularization process can be understood as storing the data in the array in the order of the index number of the array is 0, 1, 2...n, ensuring that there is no empty data between the data, and placing it at the front of the array, and the vacant position is located after the array End processing operations. At present, the commonly used buffer array regularization method is to migrate the data in the array one by one. This one-by-one migration of large batches of data takes a long time and is sl...

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): G06F12/0817G06F9/50
CPCG06F9/5016G06F9/5022G06F12/0824
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD