What is lazy loading?
Lazy loading is the ability to specify the standard routines that are compiled and loaded into memory at program startup. Because many applications contain unused features, deferred loading is intended to speed up the initial opening time of a program.
Lazy loading is also known as dynamic loading of functions.
Programs contain features that are implemented by various program components. Lazy loading specifies system instructions to only load essential components. When used properly, deferred loading improves program performance.
Program components that are loaded into memory when the program is started, such as modules or DLLs, depend on the threading process of the software functions. Some threads are dispensable during program startup because a user may need to display an interface before performing a particular function. Other threads can be delayed until the initial interface has been loaded into memory.
A typical program has more than one interface. When a computer detects that a user is using additional software functions, more components can be loaded into memory. If components are loaded when the computer hardware is busy, the loading process can affect computer performance. In general, if a program uses many of its components at startup, lazy loading is not likely to improve performance.