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

Data processing method and device, equipment and storage medium

A data processing and function technology, applied in the computer field, can solve the problem of low efficiency of parameterized calculation and achieve the effect of improving efficiency

Pending Publication Date: 2022-07-12
ALIBABA (CHINA) CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the parametric calculation process of the above-mentioned related technology, the parameter values ​​of all parameters must be pre-calculated regardless of whether there are parameters that do not affect the calculation result. Therefore, the efficiency of parametric calculation is low.

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
  • Data processing method and device, equipment and storage medium
  • Data processing method and device, equipment and storage medium
  • Data processing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] refer to figure 2 , figure 2 It is a flowchart of steps of a data processing method according to Embodiment 1 of the present application. Specifically, the data processing method provided by this embodiment includes the following steps:

[0045] In step 202, an initial abstract syntax tree corresponding to the source program code is obtained, and the source program code includes a parameter reference relationship.

[0046]Abstract Syntax Tree (Abstract Syntax Code, AST) is a tree representation of the abstract syntax structure of source code, each node on the tree represents a structure in the source code, which is based on the abstract syntax structure to convert the source code into A representation of a tree structure. Abstract syntax tree describes the process of how to deduce statements in a programming language from grammatical structures. The nodes of abstract syntax tree are divided into different types such as binary expressions, declarations, and function...

Embodiment 2

[0063] refer to Figure 4 , Figure 4 It is a flowchart of steps of a data processing method according to Embodiment 2 of the present application. Specifically, the data processing method provided by this embodiment includes the following steps:

[0064] In step 402, an initial abstract syntax tree corresponding to the source program code is obtained, and the source program code includes the parameter reference relationship.

[0065] Further, the initial abstract syntax tree corresponding to the source code can be obtained in the following manner:

[0066] Get the source code;

[0067] Perform lexical analysis and syntax analysis on the source code, and generate an initial abstract syntax tree corresponding to the source code.

[0068] When performing lexical analysis and syntax analysis on the source program code to generate the initial abstract syntax tree, reference may be made to the implementation of the specific analysis method in the related art, which will not be r...

Embodiment 3

[0087] refer to Image 6 , Image 6 It is a flowchart of steps of a data processing method according to Embodiment 3 of the present application.

[0088] The application scenarios of this embodiment may be: parts design scenarios, such as: design of household products (wardrobes, tables and chairs, etc.). Taking home product design as an example, in this scenario, due to the constraints of later product processing technology, indoor space location, etc., the design process of each product usually involves dozens or even hundreds of attributes (each attribute corresponds to one attribute). parameters), such as: length, height, thickness, etc. are used to describe the specific dimensions of the product, and the properties of different parts may be mutually dependent and restricted, satisfying a certain linkage relationship (formula), that is: some attribute values ​​may be Need to rely on other attribute values, calculated by formula. like Figure 7 , involving A, B, C, D, E...

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 embodiment of the invention provides a data processing method and device, equipment and a storage medium. The data processing method comprises the steps of obtaining an initial abstract syntax tree corresponding to a source program code; the source program code comprises a parameter reference relationship; in the initial abstract syntax tree, determining target position information of a referenced target parameter; according to the target position information, replacing a target parameter in the initial abstract syntax tree with a parameter value acquisition function to obtain a replaced abstract syntax tree; wherein when the parameter value obtaining function is called, the parameter value obtaining function is used for running a target program code corresponding to the target parameter so as to obtain a parameter value of the target parameter; and performing code conversion on the replaced abstract syntax tree to obtain a replaced program code, and running the replaced program code. According to the embodiment of the invention, the parameterization calculation efficiency can be improved.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium. Background technique [0002] In many application scenarios, parametric calculation is involved. Parametric calculation refers to the process of using a certain formula to calculate according to the value of one or several parameters to obtain the calculation result. [0003] The parameterized calculation process is usually obtained by running the corresponding program code. In the related art, the program code is usually implemented based on parameter references, and the specific operation process is as follows: firstly obtain the parameter values ​​of all the referenced parameters in the program code, and then bring the specific parameter values ​​into the parameter reference position to follow the The logical relationship (formula) between the parameters defined in the code i...

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 Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/42G06F8/433
Inventor 梁锦
Owner ALIBABA (CHINA) 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