Lazy initialization is the tactic of delaying the creation of an object, the calculation of a value, or some other expensive process until the first time it is needed.
storing the instances in a map, so you get the same instance the next time you ask for an instance with same parameter (compare with a singleton pattern)
using lazy initialization to instantiate the object the first time it is requested (lazy initialization pattern).
Hi, I am Vinod working as a Sr. Software Developer on PHP, MySql, Linux, Ajax etc. for last 4 years. This blog is a medium to share some thoughts & experiments of mine which I've experienced in the span of my professional career.
The Information in this weblog is provided "AS IS" with no warranties and confers no rights. This webLog does not represents the thoughts, intentions, plans, startegies, information about/of my employer. This is solely my thoughts which i want to share across. My thoughts and opinions might change from time to time as i learn more and develop deep knowledge about things which i write here.
No comments:
Post a Comment