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

A graph computing method and system based on dynamic code generation

A dynamic code and graph algorithm technology, applied in the field of graph computing and analysis, can solve the problems of high algorithm preprocessing cost, unreusable graph structure, inability to be optimized inline, etc., to avoid preprocessing cost, increase intermediate graph structure and The effect of graph algorithm caching and eliminating overhead

Active Publication Date: 2021-10-19
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 2. The overhead of external code calls is introduced: when the graph algorithm obtains the required attributes and other data, the generated graph calculation code needs to be accessed through the external code interface, which not only introduces the overhead of external calls, but also makes the related external codes need to Exported symbols cannot be optimized inline;
[0007] 3. The graph structure cannot be reused, and the preprocessing cost of the algorithm is high: the graph algorithm needs to build the dependent graph structure data at runtime, and the same graph structure cannot be directly reused between different algorithms
At the same time, due to the introduction of complex code generation logic, the difficulty of developing graph algorithms has increased

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
  • A graph computing method and system based on dynamic code generation
  • A graph computing method and system based on dynamic code generation
  • A graph computing method and system based on dynamic code generation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention comprises following 3 invention points:

[0036] 1. If figure 1 As shown, the main body of the graph computing system is implemented using local language, the graph data is stored in its original structure, and passed to the dynamically generated code space through the memory sharing mechanism, which realizes zero copy of data and avoids data exchange overhead ;

[0037] 2. If figure 2 As shown, the basic operation code of the graph is precompiled to form an intermediate graph structure that can be recompiled, and it is combined with the graph algorithm for recompilation, eliminating the overhead of external calls;

[0038] 3. If image 3 As shown, on this basis, the caching mechanism of the intermediate graph structure and graph algorithm is realized, so that different graph algorithms can reuse the same graph data, reducing the preprocessing time of the algorithm, and at the same time, based on the intermediate graph structure, a general-purp...

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 proposes a graph calculation method and system based on dynamic code generation, including: constructing an intermediate graph structure containing graph operation primitives according to a graph construction request, and storing the intermediate graph structure in an intermediate graph buffer after associating it with a graph name ;According to the graph algorithm request, generate a graph algorithm structure composed of external code bytecodes, and send it to the graph algorithm buffer; retrieve the intermediate graph buffer and graph algorithm buffer with the execution request, and obtain the intermediate graph structure to be executed, the graph to be executed A triplet composed of the algorithm structure and the parameter list, and retrieve the triplet in the local code cache to obtain the execution object in the local code cache, and execute to obtain the result. The invention injects the generated code in the local code space, eliminating the overhead of data exchange; constructs an intermediate graph structure that can be recompiled, so that the access code of graph data can be compiled and optimized; meanwhile, it increases the cache of the intermediate graph structure and the graph algorithm Caching avoids the preprocessing overhead of graph calculations.

Description

technical field [0001] The invention relates to the field of graph calculation and analysis in computer technology, and in particular to a graph calculation method and system based on dynamic code generation. Background technique [0002] Graph computing is an important technology for analyzing and mining associations in data. Due to the nonlinear characteristics of the graph structure, the development of graph algorithms is difficult, and at the same time, the performance is poor, and the code is not easy to optimize. In order to support efficient graph computing requirements, corresponding computing frameworks emerged as the times require. The graph computing framework encapsulates the graph into a unified data structure and provides basic operators to assist in the development of graph algorithms. [0003] The current graph computing framework is mainly divided into two categories: (1) Provide a fixed graph operator library and use an interpreted language to combine ope...

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): G06F16/901G06F16/2458
CPCG06F16/2465G06F16/9024
Inventor 郑天祺程学旗冯吕王征张志斌刘悦赵鹏郭嘉丰
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
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