Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] General comment and specific question

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <jcowan AT reutershealth.com>
  • Cc: hal AT idi.ntnu.no, xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] General comment and specific question
  • Date: Thu, 19 Sep 2002 13:18:41 -0400

At 11:22 AM -0400 9/19/02, John Cowan wrote:
Elliotte Rusty Harold scripsit:

What don't you like about element.getChildElements().size()?

Instant garbage object.


True, but premature optimization is the root of all evil. If at some point in the future, profiling and benchmarking demonstrates that this is a real hit, I'll consider means of optimizing it.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page