重复创建并丢弃对象的方法产生很小的性能开销,而持有现有对象实例以便重用的方法则为垃圾收集器增加大量的工作负担。
Repeatedly creating and throwing out objects carries very little performance overhead, but holding onto existing object instances for reuse creates significant work for the garbage collector.
此外,TCP协议可以自动地丢弃重复的包,以及在接收方按照正确的顺序对包进行重新排列。
TCP drops duplicate packets and rearranges packets that arrive out of sequence.
我们从图书馆借书替代买书,能够重复利用的我们都不丢弃,我们都为能居住在一个整洁干净的屋子里而感到自豪。
We reuse as much as we can. Together, we take pride in living in a clean, airy, uncluttered home.
应用推荐