Data processing method and device

A data processing and data technology, applied in the computer field, can solve problems such as low data processing efficiency

Active Publication Date: 2016-01-06
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF2 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] Embodiments of the present invention provide a data processing method and device to at least solve th

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 processing method and device
  • Data processing method and device
  • Data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] According to an embodiment of the present invention, a data processing method is provided, such as figure 1 As shown, the method includes:

[0046] S102. Receive a first message for requesting an operation on the first array, where the first array includes different types of data to be processed, and each type of data to be processed is stored in an array member in the first array;

[0047] S104, according to the identification of the target object of the operation, search the mapping data structure for the position of the array member storing the target object in the first array, wherein the mapping data structure at least records the identification and storage of each type of data to be processed Correspondence between positions of array members with data to be processed in the first array;

[0048] S106. If the position in the first array of the array member storing the target object is found in the mapping data structure, perform an operation on the target object a...

Embodiment 2

[0123] According to an embodiment of the present invention, a data processing device for implementing the above data processing method is also provided, such as Figure 8 As shown, the device includes:

[0124] 1) The receiving unit 802 is configured to receive a first message for requesting an operation on the first array, wherein the first array includes different types of data to be processed, and each type of data to be processed is stored in the first array in one of the array members;

[0125] 2) The first search unit 804 is configured to search the mapping data structure for the position of the array member storing the target object in the first array according to the identifier of the target object to be operated, wherein at least each type is recorded in the mapping data structure The corresponding relationship between the identifier of the data to be processed and the position of the array member storing the data to be processed in the first array;

[0126] 3) The ...

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 processing method and device. The method comprises the following steps: receiving a first message used for requesting to operate a first array, wherein the first array comprises different types of data to be processed, and each type of data to be processed is stored in an array member in the first array; according to the identifier of an operated target object, looking up the position of the array member which stores the target object in the first array from a mapping data structure, wherein the mapping data structure at least records a corresponding relationship between the identifiers of all the types of data to be processed and the position of the array member which stores the data to be processed in the first array; and if the position of the array member which stores the target object in the first array is found from the mapping data structure, executing an operation on the target object at the position in the first array. The data processing method and device solve the technical problem of low data processing efficiency caused by that all arrays need to be traversed in a data processing process.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a data processing method and device. Background technique [0002] At present, many aspects of life have been digitized, such as e-commerce, community space sharing, and so on. Therefore, more and more people start to use the client terminal on the terminal to realize information interaction. However, in the face of a large amount of and complicated data in the background, the data processing methods usually still used in the prior art in the art usually include at least one of the following: [0003] Solution 1. Create n large fixed-length arrays according to the types (such as values ​​from 0 to n-1), each array stores data of this type, and replaces the oldest data when the array is full. However, this method has the following disadvantages: [0004] (1) When adding or deleting data, it is necessary to move the entire memory, which takes a long time; [0005] (2) The length...

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/30H04L29/06
Inventor 廖锡光
Owner TENCENT TECH (SHENZHEN) 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