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

Character string compression method and apparatus

A compression method and string technology, which is applied in the computer field, can solve problems such as strings cannot be reduced at will, and achieve the effects of convenient implementation, shortening memory space, and saving system resources

Inactive Publication Date: 2018-08-31
北京思特奇信息技术股份有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the string cannot be reduced arbitrarily

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
  • Character string compression method and apparatus
  • Character string compression method and apparatus
  • Character string compression method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In the following description, for purposes of illustration rather than limitation, specific details such as specific system architectures, interfaces, and techniques are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0043] figure 1 It is a schematic flowchart of a character string compression method provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0044] Step 110, acquire the first character string group.

[0045] Specifically, the string group is generally information related to user communication, such as user number, package ID, package discount track,...

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 relates to a character string compression method and apparatus. The method comprises the steps of obtaining a first character string group, wherein the first character string group comprises at least two character strings, and a key value corresponding to each character string in the at least two character strings; performing format conversion on the first character string group to obtain a second character string group; obtaining first character strings with a quantity higher than a preset threshold in the second character string group; according to the key values correspondingto the first character strings, searching for characters corresponding to the first character strings in a pre-established character mapping table; and replacing all the first character strings in thesecond character string group with the characters corresponding to the first character strings to obtain a third character string group. In the way, character string compression can be realized, so that the memory space occupied by bytes of the character strings can be reduced and the system resources are saved; and other storage modes are reserved, the system impact is relatively small, and theimplementation is convenient.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a character string compression method and device. Background technique [0002] Due to the advent of the data age, the length of strings is getting longer and longer. For example, the strings in user numbers, package IDs, and package discount tracks are relatively long. During the statistical analysis of data, when the user does not order any package Next, the cumulative amount in the package discount track can occupy about 450 characters. If the cumulative amount of the order is added, the length of the string will be even greater. As far as the currently used technology is concerned, the reduction of the length of the string cannot be realized. The reasons are as follows: First, the ID in the existing system package must be consistent with the package ID on the main system side to ensure that the existing The resource data corresponding to the package ID in the system and th...

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): G06F17/30
CPCG06F16/2255G06F16/258
Inventor 姜树宝
Owner 北京思特奇信息技术股份有限公司