Introduction
Subprogram is procedure or function that is declare in declaration section like below DECLARE
PROCEDURE XXX (IN_PARAMATER NUMBER)
IS
BEGIN
--CODE OF PROCEDURE
END;
FUNCTION YYY (IN_PARAMETER NUMBER)
RETURN NUMBER
IS
BEGIN
--CODE OF FUNCTION
END;
BEGIN
--CODE OF ANONYMOUS BLOCK
END;
When you call subprogram(procedure or function) in your code multiple time, in every call it will be loaded again so it will take more time to execute.
To enhance previous drawback we use inline to replace the subprogram call with the copy of already called subprogram before.