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