Lazy Initialization is a performance optimization where you defer (potentially expensive) object creation until just before you actually need it.
One good example is to not create a database connection up front, but only just before you need to get data from the database.
The key reason for doing this is that (often) you can avoid creating the object completely if you never need it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…