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

A technology of storage efficiency and character strings, which is applied in the computer field, can solve problems such as consumption and occupied memory capacity, and achieve the effects of improving storage efficiency, increasing memory occupation, and reducing memory copy consumption

Active Publication Date: 2018-10-16
WUHAN DOUYU NETWORK TECH CO LTD
View PDF2 Cites 2 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

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[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 eff

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 method and device for improving the storage efficiency of a string character string, an electronic device and a computer readable storage medium. The method comprises the following steps: In C++ project development, defining a structural body for storing and optimizing the memory data of a string object; adopting a character string splitting function, and classifying according to the byte size of the data of the string object; and carrying out corresponding memory processing. The method reduces the memory occupation and performance consumption of the string object generated by the assignment operation, and improves the storage efficiency.

Description

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

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
Owner WUHAN DOUYU NETWORK TECH 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