Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device, electronic device, and computer-readable storage medium for improving string storage efficiency

A technology of storage efficiency and character strings, which is applied in the computer field, can solve the problems of large memory usage and consumption, and achieve the effects of increasing memory usage, improving storage efficiency, and reducing memory copy consumption

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

AI Technical Summary

Problems solved by technology

[0002] String is a string type in the C++ programming language. It is mainly used for string processing. In the process of C++ project development, string is the most commonly used container. Among them, string is easy to use, integrates more string operations, and has a high usage rate. Performance is very important. The commonly used expression form is the std::string class. This expression form is a standard C++ string implementation. Using this standard form is convenient for program transplantation, but there are still some disadvantages in the use process, such as occupying memory Large capacity, if an object assignment operation occurs, it will cause multiple memory copy consumption

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
  • Method, device, electronic device, and computer-readable storage medium for improving string storage efficiency
  • Method, device, electronic device, and computer-readable storage medium for improving string storage efficiency
  • Method, device, electronic device, and computer-readable storage medium for improving string storage efficiency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The invention provides a method, a device, an electronic device and a computer-readable storage medium for improving the storage efficiency of strings, which are used to reduce memory occupation and performance consumption of string objects.

[0046] 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. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047] Embodiment 1 of the present invention provides a method for improving the storage ...

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 present invention relates to a method, device, electronic equipment and computer-readable storage medium for improving the storage efficiency of a string character string. The method is as follows: in the development of a C++ project, define a structure, save and optimize the memory data of a string object, and use characters The string splitting function classifies string objects according to their data byte size and performs corresponding memory processing. The method will reduce the memory usage and performance consumption of string objects generated by assignment operations, and improve storage efficiency.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, electronic equipment and computer-readable storage medium for improving the storage efficiency of strings. Background technique [0002] String is a string type in the C++ programming language. It is mainly used for string processing. In the process of C++ project development, string is the most commonly used container. Among them, string is easy to use, integrates more string operations, and has a high usage rate. Performance is very important. The commonly used expression form is the std::string class. This expression form is a standard C++ string implementation. Using this standard form is convenient for program transplantation, but there are still some disadvantages in the use process, such as occupying memory Large capacity, if an object assignment operation occurs, it will cause multiple memory copy consumption. Contents of the invention [00...

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): G06F8/41
CPCG06F8/44G06F8/441
Inventor 黄浩张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products