On Case and Performance

Tim Bray tbray at textuality.com
Sat Sep 6 23:53:35 BST 1997


At 02:34 PM 06/09/97 -0700, Jon Bosak wrote:
>| Resulting performance improvement in Lark, in processing the XML spec:
>| a factor of 11.9.
>
>Now you've made me too curious to resist asking.  What's the
>performance difference if you just compare codes directly and don't
>bother with case folding?

To test that I'd have to go regularize the case of all the tags in the 
XML spec which <subtext>seems like an unreasonable amount of work</subtext>.  
Anyhow, the routine that checks whether we've seen a GI (where this stuff is)
is taking 8.7% of the total time.  So the gain from skipping the monocasing
entirely is not going to be dramatic.  In fact, it's now spending more
time in BufferedInputStream.read() (oh for a good old-fashioned getc()
macro). -Tim

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)




More information about the Xml-dev mailing list