3 ms·
You may be right, i don't know. Tracking a cause of OutOfMemoryError recently (we maintain several applications written in Java at my day job), i've observed t
by dr_rust 10y ago
You may be right, i don't know.
Tracking a cause of OutOfMemoryError recently (we maintain several applications written in Java at my day job), i've observed that most data-structures have a size very different if empty or not.
- hyperpape 10y agoYes, because many of them allocate a zero size array when you call their constructor and then lazily add to it. But that isn't really about object layout as I think of it, so much as what the fields of a particular object are.