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

A data storage method and device and storage medium

A data storage and data technology, applied in the computer field, can solve the problems of low utilization rate of storage resources and increase storage space occupation, so as to achieve the effect of reducing occupation and improving utilization rate of storage resources

Active Publication Date: 2021-09-28
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The method of directly using two-dimensional matrix storage has the following disadvantages: it is necessary to apply for a whole block of memory to store two-dimensional matrices, especially for relatively large maps, which require a large block of memory, for example, using one area information per 0.5 meters Location points, when the map is bigger, there are more location points for area information
Therefore, the information storage method provided by the prior art increases the occupation of storage space, and there is a problem of low utilization rate of storage resources

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 data storage method and device and storage medium
  • A data storage method and device and storage medium
  • A data storage method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The embodiment of the present invention provides a data storage method and device and a storage medium, which are used to compress the original matrix and improve the utilization rate of storage resources.

[0037] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

[0038] The terms "comprising" and "having" in the description and claims of the present invention and the above drawings, as well as any variations thereof, are intended ...

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 invention discloses a data storage method, device and storage medium, which are used to compress the original matrix and improve the utilization rate of storage resources. An embodiment of the present invention provides a data storage method, including: dividing the original matrix into at least two sub-matrices according to the principle of matrix segmentation, the values ​​of the elements in the original matrix before segmentation represent palette data, and The value of the elements in the sub-matrix after division represents the palette data; configure sub-matrix indexes for different sub-matrices in the at least two sub-matrices; according to the position of the sub-matrix in the original matrix The coordinates and the sub-matrix index generate a main matrix, the elements in the main matrix correspond to the position coordinates of the sub-matrix in the original matrix, and the values ​​of the elements in the main matrix represent the corresponding position coordinates Corresponding sub-matrix index; storing the main matrix and different sub-matrices of the at least two sub-matrices into a compressed matrix library.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a data storage method and device and a storage medium. Background technique [0002] In a game application, when processing information of different regions, a 32-bit storage space is required to identify the information of a certain location point. Then, the information of all location points is composed into a two-dimensional map matrix of terrain area information, so that the needs of quickly querying area information through location can be met. In game applications, 1024*1024 or even larger maps are often used. For example, in mobile games, a location point of area information is used every 0.5 meters. Such a 1024*1024 map often requires 4 megabytes of memory space to store map information. [0003] In the prior art, information of location points is directly stored as a two-dimensional matrix. The method of directly using two-dimensional matrix storage has 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 Patents(China)
IPC IPC(8): G06F17/16G06F16/51
CPCA63F13/52
Inventor 杨首昂
Owner TENCENT TECH (SHENZHEN) CO LTD