What is Lazy Loading?

前端 未结 13 1333
栀梦
栀梦 2020-11-29 16:46

What is Lazy Loading?

[Edit after reading a few answers] Why do people use this term so often?

Say you just use a ASP/ADO recordset and load it with data or

13条回答
  •  时光取名叫无心
    2020-11-29 16:58

    is a Design pattern.

    Lazy loading: Untill your code require some operation done by a particular object, object is not initilaized, and once it's initialized it doesn't re-initialize the object but uses the previously initialized object.

    This makes your code much more efficient and helps managing memory usage.

    Example Applications of Lazy loading:

    Ghost Lazy initialization Value holder

提交回复
热议问题