3 ms·
Be nice to your garbage collector. Don't leave references to objects that are not needed. Once they are done, and the scope is going to remain, null them.
by datavirtue 4y ago
Be nice to your garbage collector. Don't leave references to objects that are not needed. Once they are done, and the scope is going to remain, null them.
- ramranch 4y agoWhy not just write C, then? Sounds like you're just setting up for NPEs
- nlitened 4y agoOr use a language that does it automatically, like Clojure
- thewisenerd 4y agois this a reference to the 2019 talk, or are you being serious (in which case, could you please share a couple references)? context: https://www.youtube.com/watch?v=ocUx-QUJMfo&t=630s https://www.youtube.com/watch?v=ocUx-QUJMfo&t=630s