bit more jvm than kotlin really, but would have a ...
# android
g
bit more jvm than kotlin really, but would have a million of instances of data classes bloat an apps memory size
z
Having a million instances of anything is gonna take a million times jvm-pointer-size bytes just to store references to them, plus a million times size-of-the-object, plus the memory required to store any objects your objects have references to. So that's gonna be a good chunk of memory.
g
Just wanted to check that, thanks 🙂 I know its a bit late 😛