mardi 29 mars 2016

When should a large amouth of objects should be stored on the heap

My question is if I have a lot of huge objects(not managed in containers) when should I allocate them on the heap and when on the stack? Is there an guide or something on when i shouldn't allocate on the stack anymore because the amouth of objects is to big? How does for example C# or Java handle this problem? DO they allocate on heap or on stack?

Aucun commentaire:

Enregistrer un commentaire