If we explicitly call Garbage collector
apigee, a better way to API!
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Hi Anupam, is there any specific reason as to why the garbage collector will not clean all the non-referenced objects that it finds while it is running?
~Sanjeev Singh<br />SCJP 1.5
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
explicit gc call is not required for and gc is generally smart enough to figure out when to gc
Secondly we are not making gc smarter by explicitly calling gc. In your simple program the code would generally complete much earlier if you remove the explicit calls.
I mean what would you do with the free memory when you do not need it?
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|