25 messages in org.ibiblio.lists.xom-interest[XOM-interest] Three cosmetic patches
FromSent OnAttachments
Wolfgang HoschekFeb 9, 2004 6:42 pm 
Elliotte Rusty HaroldFeb 10, 2004 9:25 am 
Wolfgang HoschekFeb 10, 2004 3:23 pm 
jco...@reutershealth.comFeb 10, 2004 3:48 pm 
Elliotte Rusty HaroldFeb 11, 2004 1:21 pm 
Wolfgang HoschekFeb 11, 2004 1:24 pm 
jco...@reutershealth.comFeb 11, 2004 2:15 pm 
Elliotte Rusty HaroldFeb 11, 2004 3:18 pm 
jco...@reutershealth.comFeb 11, 2004 4:20 pm 
Francois BeausoleilFeb 11, 2004 8:08 pm 
Trimmer, ToddFeb 12, 2004 11:57 am 
Elliotte Rusty HaroldFeb 12, 2004 2:53 pm 
Trimmer, ToddFeb 13, 2004 1:26 pm 
Elliotte Rusty HaroldMar 8, 2004 3:17 pm 
jco...@reutershealth.comMar 8, 2004 4:06 pm 
Elliotte Rusty HaroldMar 8, 2004 4:34 pm 
Elliotte Rusty HaroldMar 9, 2004 11:55 am 
Bradley S. HuffmanMar 9, 2004 12:09 pm 
Elliotte Rusty HaroldMar 9, 2004 1:05 pm 
jco...@reutershealth.comMar 9, 2004 2:04 pm 
jco...@reutershealth.comMar 9, 2004 4:32 pm 
Elliotte Rusty HaroldMar 9, 2004 10:43 pm 
John CowanMar 9, 2004 10:58 pm 
Elliotte Rusty HaroldMar 10, 2004 6:12 am 
Dirk BergstromMar 10, 2004 6:25 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[XOM-interest] Three cosmetic patchesActions...
From:Elliotte Rusty Harold (elh@metalab.unc.edu)
Date:Feb 11, 2004 1:21:32 pm
List:org.ibiblio.lists.xom-interest

At 3:48 PM -0500 2/10/04, jco@reutershealth.com wrote:

In addition, recursion is dangerous in Java in library routines that recurse over user-supplied data, because the per-thread stack is of fixed size, is typically set globally, and no recovery is possible if it overflows.

OK. Based on this I made that change. Code will be in CVS soon if it isn't already. However, my benchmarks were not able to measure any performance difference between the two cases. If there is one, it's below my resolution.

One thing I've noticed while measuring XOM is that any changes that don't affect parsing or serialization are pretty much irrelevant. The times required to walk even a medium sized tree while modifying it are somewhere below 1 millisecond. Possibly this would be measurable for large documents, but in that case it's more important to optimize for space rather than speed. Parsing and serialization are the only things worth optimizing for speed.

The flip side is that if anyone has suggestions for saving time during parsing and serialization, send them in. Even a 1 or 2% improvement should be measurable. --