Unlock instant, AI-driven research and patent intelligence for your innovation.

Program execution method and device, equipment and medium

A technology of program execution and main program, which is applied in the direction of program code conversion, creation/generation of source code, code compilation, etc. It can solve problems such as team development obstacles, affecting memory release, and affecting program performance, so as to reduce circular dependencies and increase effect of complexity

Active Publication Date: 2019-06-25
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when the project volume is relatively large and the business is relatively complex, various dependencies will inevitably be generated in the program, for example, inheritance between classes, or interdependence between jar packages, etc. Excessive dependencies will inevitably increase the system The complexity of the code makes it difficult to read and thus becomes a hindrance to the development of the team
In particular, the circular dependency will affect the memory release and other operations during program execution, and affect the running performance of the entire program.

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
  • Program execution method and device, equipment and medium
  • Program execution method and device, equipment and medium
  • Program execution method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1 It is a flow chart of a program execution method provided by Embodiment 1 of the present disclosure. This embodiment is applicable to the case of using classes to implement business functions in the main project development mode. The method can be executed by a program execution device, which can Implemented in the form of software and / or hardware, the device can be configured in electronic equipment, and the method specifically includes the following steps:

[0055] Step 110, during the execution of the main program in the main project, if it is detected that the target main project class defined in the main program is triggered, start to execute the target main project class.

[0056] Among them, the main program in the main project is the program code used to realize the main body of the business function, which realizes the complete business function by calling different types of entities. The target main project class is a class defined in the main progra...

Embodiment 2

[0071] figure 2 It is a flow chart of a program execution method provided in Embodiment 2 of the present disclosure. This embodiment can be combined with each optional solution in the above one or more embodiments to provide specific execution steps after starting to execute the target main project class and after starting to execute the target underlying component class. In this embodiment, after starting to execute the target main project class, it may also include:

[0072] During the execution of the target main project class, if a call to the second target public component class in the second public component library is detected, the second target public component class is started to be executed; the execution of the second target public component class is fed back The result is provided to the target main project class so that the target main project class continues execution based on the execution result.

[0073] Correspondingly, after starting to execute the target...

Embodiment 3

[0105] image 3 It is a schematic structural diagram of a program execution device provided in Embodiment 4 of the present disclosure. This embodiment is applicable to the case of using classes to implement business functions in the main project development mode. The device can be implemented in the form of software and / or hardware, and the device can be configured in an electronic device, and the device can include: a main project execution module 310, an underlying component execution module 320, and a first execution result feedback module 330, wherein ,

[0106] The main project class execution module 310 is used to start executing the target main project class if it detects that the target main project class defined in the main program is triggered during the execution of the main program in the main project;

[0107] The underlying component class execution module 320 is used to start executing the target underlying component class if a call to the target underlying com...

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 discloses a program execution method and device, equipment and a medium, and the method comprises the steps: in the execution process of a main program in a main project, starting to execute a target main project class if detecting that the target main project class defined in the main program is triggered; In the execution process of the target main engineering class, if calling of the target bottom layer component class in the bottom layer component library is detected, the target bottom layer component class starts to be executed; wherein the bottom-layer component library comprises at least one bottom-layer component class, and the bottom-layer component class cannot call the classes included in the main project in the execution process; and providing the execution result fed back by the target underlying component class to the target main engineering class, so that the target main engineering class continues to execute based on the execution result.The embodiment of the invention can effectively reduce the cyclic dependency relationship between the classes.

Description

technical field [0001] Embodiments of the present disclosure relate to program processing technologies, and in particular, to a program execution method, device, device, and medium. Background technique [0002] With the continuous development of the intelligent industry, program development, as the core step to realize the functions of intelligent software, has played a vital role in the development of the intelligent industry. [0003] The existing program development mode mainly chooses the main project development mode, that is, programmers write entities that can realize various business functions in the main program, such as classes, jar (Java Archive, Java archive) packages or modules, etc. The project refers to one or more entities required to realize the required business functions. [0004] However, when the project volume is relatively large and the business is relatively complex, various dependencies will inevitably be generated in the program, for example, inhe...

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/41G06F8/30
Inventor 王岳晨
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD