object reuse
常見例句
- It is good practice to load the home object once and reuse it to avoid additional expensive JNDI lookups.
只加載本地對象一次,重用它來避免額外的昂貴 JDNI 查找,這不失為一個好方法。 - Object reuse was often touted as a major benefit of object-orientation, but frequently the reality failed to live up to the theory.
對象重用經(jīng)常被曲解成是面向?qū)ο蟮闹饕锰?,但實際往往相悖于理論。 - 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.
重復(fù)創(chuàng)建并丟棄對象的方法產(chǎn)生很小的性能開銷,而持有現(xiàn)有對象實例以便重用的方法則為垃圾收集器增加大量的工作負擔(dān)。 返回 object reuse