US 12,073,213 B2
Automatic generation of interfaces for optimizing codebases
Janos Bonic, Vienna (AT); Sanja Bonic, Vienna (AT); and Leigh Griffin, Waterford (IE)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Jul. 28, 2022, as Appl. No. 17/875,545.
Prior Publication US 2024/0036861 A1, Feb. 1, 2024
Int. Cl. G06F 8/76 (2018.01); G06F 8/71 (2018.01)
CPC G06F 8/76 (2013.01) [G06F 8/71 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
obtaining, by a computing system comprising one or more processor devices, codebase information for a codebase of an application that identifies a plurality of units of software instructions included in the codebase of the application;
based at least in part on the codebase information for the codebase of the application that identifies the plurality of units of software instructions, identifying, by the computing system, a plurality of invoking units of software instructions that each directly invoke one or more functions of an invoked unit of software instructions, wherein the plurality of units of software instructions comprises the plurality of invoking units of software instructions and the invoked unit of software instructions;
based on at least one criterion, selecting a first function of the one or more functions of the invoked unit of software instructions for inclusion in an interface; and
generating an interfacing unit of software instructions that implements the interface, wherein the interface is configured to be invoked by at least one invoking unit of software instructions of the plurality of invoking units of software instructions, and when the interface is invoked, to invoke the first function of the one or more functions of the invoked unit of software instructions.