Invention Grant
- Patent Title: Code refactoring mechanism for asynchronous code optimization using topological sorting
-
Application No.: US15280754Application Date: 2016-09-29
-
Publication No.: US10157055B2Publication Date: 2018-12-18
- Inventor: Gal Tamir , Elad Iwanir , Eli Koreh
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agency: Fiala & Weaver P.L.L.C.
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F8/72 ; G06F8/41

Abstract:
Methods, systems, apparatuses, and computer program products are provided for transforming asynchronous code into more efficient, logically equivalent asynchronous code; Program code is converted into a first syntax tree. A dependency graph is generated from the first syntax tree with each node of the dependency graph corresponding to a code statement and having an assigned weight. Weighted topological sorting of the dependency graph is performed to generate a sorted dependency graph. A second syntax tree is generated from the sorted dependency graph. In another implementation, the program code is transformed into await-relaxed and/or loop-relaxed program code prior to being transformed into the first syntax tree.
Public/Granted literature
- US20180088937A1 CODE REFACTORING MECHANISM FOR ASYNCHRONOUS CODE OPTIMIZATION USING TOPOLOGICAL SORTING Public/Granted day:2018-03-29
Information query