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

Coding method, system and equipment in project based on asynchronous programming and medium

A coding method and coding system technology, applied to systems, equipment and media, based on asynchronous programming in the field of coding methods in projects, can solve the problem of hard-coded service arrangement being difficult to develop and maintain, and achieve flexible and efficient cross-module data access functions, The effect of flexible up and down transfer, saving hard coding and maintenance work

Pending Publication Date: 2022-07-29
CTRIP TRAVEL NETWORK TECH SHANGHAI0
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a coding method, system, device and medium based on asynchronous programming in projects in order to overcome the defect that hard-coded service arrangement is not easy to develop and maintain in the prior art

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
  • Coding method, system and equipment in project based on asynchronous programming and medium
  • Coding method, system and equipment in project based on asynchronous programming and medium
  • Coding method, system and equipment in project based on asynchronous programming and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] like figure 1 As shown, a flowchart of a coding method in a project based on asynchronous programming in an embodiment of the present invention may specifically include the following steps:

[0044] S1. Obtain target item data; the target item data includes a plurality of first data modules, different first data modules correspond to different types of project sub-data, and the first data modules include class attribute identifiers.

[0045] S2. Determine the data structure diagram corresponding to the target item data; the data structure diagram is used to represent the tree structure formed by the first data module and the second data module generated depending on the first data module.

[0046] S3. Execute the processing thread set according to the first data module and the second data module.

[0047] S4. Detect whether the second data module to be processed in the currently executing processing thread is the root node, if not, execute step S51, and if so, execute ...

Embodiment 2

[0066] like image 3 As shown, a block diagram of a coding system based on asynchronous programming in a project in an embodiment of the present invention may specifically include the following steps: an acquisition module 210, a determination module 220, an execution module 230, a detection module 240, and a first processing module 251 and the second processing module 252.

[0067] The acquisition module 210 is used for acquiring target item data; the target item data includes a plurality of first data modules, different first data modules correspond to different types of project sub-data, and the first data modules include class attribute identifiers.

[0068] The determining module 220 is configured to determine a data structure diagram corresponding to the target item data; the data structure diagram is used to represent a tree structure composed of a first data module and a second data module generated depending on the first data module.

[0069] The execution module 230...

Embodiment 3

[0089] Figure 4 This is a schematic structural diagram of an electronic device provided in this embodiment. The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the asynchronous programming-based coding method in the project of Embodiment 1 when the processor executes the program, Figure 4 The electronic device 30 shown is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

[0090] The electronic device 30 may take the form of a general-purpose computing device, which may be, for example, a server device. Components of the electronic device 30 may include, but are not limited to, the above-mentioned at least one processor 31 , the above-mentioned at least one memory 32 , and a bus 33 connecting different system components (including the memory 32 and the processor 31 ).

[0091] The bus 3...

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 coding method, system and equipment in a project based on asynchronous programming and a medium. The method comprises the following steps: acquiring target project data; determining a data structure chart corresponding to the target project data; executing a processing thread set according to the first data module and the second data module; and detecting whether a to-be-processed second data module in the currently executed processing thread is a root node or not, and if not, continuing to execute data processing operation of other second data modules depending on the second data module in the processing thread. According to the method, data are stored through object attributes, so that high-cohesion modularization is realized on one hand, and a flexible and efficient cross-module data access function is realized on the other hand; according to the automatic service arrangement realized based on modularization, flexible up-and-down transmission of data between modules is realized, and hard coding and maintenance work of service arrangement is saved.

Description

technical field [0001] The present invention relates to asynchronous programming technology, in particular to a coding method, system, device and medium in a project based on asynchronous programming. Background technique [0002] Asynchrony is a program design idea. Programs designed using the asynchronous mode can significantly reduce thread waiting, thus greatly improving the overall performance of the system and significantly reducing latency in high-throughput scenarios. Asynchronous programming is a mode of concurrent programming. Its focus is to reduce the execution time of the entire program by reducing the idle time of the processor by scheduling the execution and waiting time between different tasks. [0003] The existing CompletableFuture (combined asynchronous programming) and Reactor (asynchronous application library) asynchronous programming frameworks have the defects of complex context data transfer, and some frameworks for aggregation operations do not suppo...

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
IPC IPC(8): G06F8/41G06F8/30G06F9/448
CPCG06F8/44G06F8/315G06F9/4482G06F9/449
Inventor 王卓孙大圣付文平
Owner CTRIP TRAVEL NETWORK TECH SHANGHAI0
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