What is the opposite of lazy loading?

2020-06-07 08:08发布

问题:

Is there a common term / catch-phrase for the opposite of lazy loading?

回答1:

The oposite term for lazy loading is eager loading.

Eager loading is essentially computing the tasks when you ask for it.

Lazy Loading is when you only do the computation when it is required.



回答2:

I've seen the terms "Eager Loading" and "Aggressive Initialization" both used.



回答3:

I'd say that the opposite of lazy is proactive loading, i.e. loading something in advance, before it's really needed.

However it's hard to pick the opposites when you have 3 entities {lazy, eager, proactive}