Lazy Loading: Dynamic Linking on Demand
摘要
Imagine starting a complex application like LibreOffice or Firefox. If the program had to load and resolve every single function from every library it might possibly use—spell checkers, image decoders, network protocols, printing systems—the startup time would be unbearable. Yet these applications start in seconds. How? The answer is lazy loading, one of the most elegant optimizations in modern operating systems.