object reuse
常見例句
- It is good practice to load the home object once and reuse it to avoid additional expensive JNDI lookups.
衹加載本地對(duì)象一次,重用它來避免額外的昂貴 JDNI 查找,這不失爲(wèi)一個(gè)好方法。 - Object reuse was often touted as a major benefit of object-orientation, but frequently the reality failed to live up to the theory.
對(duì)象重用經(jīng)常被曲解成是麪曏對(duì)象的主要好処,但實(shí)際往往相悖於理論。 - 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.
重複創(chuàng)建竝丟棄對(duì)象的方法産生很小的性能開銷,而持有現(xiàn)有對(duì)象實(shí)例以便重用的方法則爲(wèi)垃圾收集器增加大量的工作負(fù)擔(dān)。 返回 object reuse