Skip to main content

All Questions

4 votes
4 answers
539 views

Is it better to generate a large list during the constructor or when it's accessed?

I've got a class member function that generates a large list and puts it into a private member variable so it can be accessed through a getter. The generation of this list is a rather intensive ...
SenorMeltyface's user avatar