lazy initialization
基本解释
- 惰性初始化
英汉例句
- This pattern and similar techniques are sometimes called lazy initialization, since the initialization is not performed until actually required.
该模式和类似的技术有时称为“惰性初始化”,原因是在实际需要之前不执行初始化。 - The example uses a lazy initialization approach and caches a reference to the Public Key from the CA Certificate to avoid the need to reload it each time the handler is invoked.
该实例使用滞后初始化的方案并缓存 CA 证书中的公共密匙的引用来避免每次处理程序调用时都要重新加载它。 - The main disadvantage of lazy initialization is your code becomes more complex because you need to check to see if the attribute has been defined yet and, if not, obtain its value.
延迟初始化的主要弊端是,由于要查看属性是否已定义,如果没有,则得到它的值,这会使代码变得更复杂。
双语例句
词组短语
- lazy -initialization mode 懒加载模式
- Swift Lazy Initialization with Closures 原文地址
短语
专业释义
- 延迟初始化