Character string quoting method

A string and string hash value technology, applied in the field of computer applications, can solve problems such as large memory consumption, achieve the effect of speeding up the search, ensuring the reference speed, and improving the speed of searching for strings

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

AI Technical Summary

Problems solved by technology

[0012] In view of this, the purpose of the present invention is to provide a string reference method to solve the problem of large memory consumption in the existing string reference method

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 quoting method
  • Character string quoting method
  • Character string quoting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0038]The core idea of ​​the method of the present invention is: preset a string management unit for storing the hash value of a string; when an external functional unit needs to quote a string, send a string reference application carrying a corresponding string to the string management unit; After receiving the string reference application, the string management unit calculates the hash value of the string carried in the application, and then searches for the calculated hash value from the hash Find the character string carried in the application in the character string corresponding to the calculated hash value, and output the reference information of the character string; the external functional unit references the character string according to the output refere...

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 disclosed reference method for character string comprises: pre-setting the string management unit to store the hex value of string; when referring to the string, sending reference request with opposite string to the management unit; calculating the carried hex value, finding out the result from self stored values, and finding out the opposite string for output; finally, referring the string by external function unit. This invention optimizes string storage, and saves system memory and CPU occupancy.

Description

technical field [0001] The present invention relates to the field of computer application technology, in particular to a string reference method. Background technique [0002] In C language and C++ language, strings are used as indexes of other objects or objects themselves. Traditional strings are generated and stored independently by functional units that refer to strings according to their own needs, and then used. When string comparison is required during the process, it is necessary to compare all the characters of the strings to be compared one by one to determine whether the strings to be compared are the same. string delete. [0003] On the one hand, this traditional character string reference method requires each functional unit to save the character string independently, so it may cause the same character string to be stored in multiple functional units and redundantly occupy the system storage space. On the other hand, since the length of the character string us...

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): G06F9/44
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