-
1.
公开(公告)号:GB2600554A
公开(公告)日:2022-05-04
申请号:GB202113987
申请日:2021-09-30
Applicant: IBM
Inventor: LIN CHEN , JINHO HWANG , MUHAMMAD FAITH BULUT , ALI KANSO , SHRIPAD NADGOWDA
IPC: G06F8/72
Abstract: A computer system wherein there is a genetic manager to apply a genetic algorithm to parent re-factoring operations selected from an initial identified set of such operations for source code to produce an offspring population of the operations as a subset of the parent re-factoring operations. A score manager measures a fitness score of each re-factoring operation including collecting runtime traces of the source code and applies the traces to the subset such that a classifier can prioritise operations within the subset based on a corresponding fitness score. Responsive to the prioritisation one or more of the re-factoring operations can be applied to the source code to produce one or more micro-service candidates. A crossover operator may be applied to generate a combination of offspring re-factoring operations, and a mutation operator may be applied to introduce variability to the generated combination. The application of the genetic algorithm and fitness score measurement may be an iterative process wherein an operation is selected as the next parent re-factoring operation on an objective factor and iteratively applied to the process.