3 ms·
Remember Go doesn't have objects, it only has structs which are most likely (and should be, but I haven't verified) much lighter weight than the objects you mig
by codygman 14y ago
Remember Go doesn't have objects, it only has structs which are most likely (and should be, but I haven't verified) much lighter weight than the objects you might be used to in Java.
As far as the creating tens/hundreds of thousands of structs per second for weeks or months without leaking memory, I'll get back to you on that once my code has been active that long ;)
- pkulak 14y agoIf you have something really intensive running GO, I genuinely would love to hear how it's going after some uptime. Thank you.
- jlouis 14y agoUsually the in-memory representation is the same for objects and structs, given a garbage collected language.
- codygman 14y agoOk, I'll have to test it sometime. (if anyone has tested it, let me know)