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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Lazy Loading: Dynamic Linking on Demand

  • Mohit Mishra

摘要

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.