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

Code generation method and device

A code generation and code technology, applied in the direction of creating/generating source code, reverse engineering, software maintenance/management, etc., can solve the problems of difficulty in popularization, consumption of high processor computing resources, high cost of development and maintenance, etc., to achieve Efficient and reasonable use, the effect of reducing the cost of access

Active Publication Date: 2020-05-19
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, data is generally stored in the form of binary data streams in shared memory, so that when storing data in shared memory, it needs to be encoded and decoded. This process consumes a lot of computing resources of the processor, and it is very likely Affect the quality of service in the background
It even leads to the need to add another layer of process cache in the actual use process, which increases the cost of data maintenance and update
[0005] In response to the above problems, related technologies provide a solution to create a storage container in shared memory using the Boost Inter-Process library, which is more convenient for programs to access data in shared content and reduces the consumption of encoding and decoding of shared memory. However, using Boost Inter-Process ) library requires developers to pay additional learning costs, the cost of development and maintenance is high, and it is difficult to popularize
[0006] To sum up, for using a simple and efficient way to create a data structure in shared memory for accessing data, reducing the consumption of computing resources of the processor caused by encoding and decoding data, there is no effective related technology. solution

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
  • Code generation method and device
  • Code generation method and device
  • Code generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the examples provided here are only used to explain the present invention, not to limit the present invention. In addition, the embodiments provided below are some embodiments for implementing the present invention, rather than providing all embodiments for implementing the present invention. Under the premise that those skilled in the art do not pay creative work, the technical solutions of the following embodiments Embodiments obtained through recombination and other embodiments based on the implementation of the invention all belong to the protection scope of the present invention.

[0038] It should be noted that, in the embodiments of the present invention, the terms "comprising", "comprising" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a method or device comprising a se...

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 discloses a code generation method and device. The code generation method comprises the steps that codes in source files are analyzed to obtain original data structures defined in the source files and used in a shared memory; basic data types included in the original data structures are determined, distributors corresponding to the basic data types in an inter-promoted-process communication library are declared, and corresponding another distributor names are generated; based on the another distributor names, target data structures corresponding to the corresponding original data structures are generated; it is determined that the distributors corresponding to the target data structures are defined to have the corresponding another distributor names; the another distributor names corresponding to the target data structures and corresponding inter-promoted-process communication library structures are output to codes in target files. By the adoption of the method, a data structure for data access can be created in the shared memory in a simple and efficient mode.

Description

technical field [0001] The invention relates to data storage technology, in particular to a code generation method and device. Background technique [0002] With the development of the Internet and the popularization of mobile terminal equipment, the demand for access to Internet services in various industries is getting higher and higher. Therefore, the performance problem of the background service program is also more and more important. In the background service system, multi-level cache is used to process data operations. Data with different operating frequencies can be directly called from the corresponding level of cache, which avoids the delay of reading data from non-volatile storage media such as disks, greatly Improve the response speed of background services, and also ensure the reliability and disaster recovery capabilities of background services. [0003] At present, multi-machine caching is generally implemented by creating multiple levels of data structures ...

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/74G06F8/30
CPCG06F8/30G06F8/74
Inventor 弋鹏玮许泽伟蔡晓鹏
Owner TENCENT TECH (SHENZHEN) 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