logo       


Re: Optimizing and XMLC application: msg#00054

Subject: Re: Optimizing and XMLC application
David Corbin <dcorbin@xxxxxxxxxxxxxx> writes:
> I have an XMLC-based application that needs some optimiztion.  It is XHTML
> based (which, I think means it cannot use the LazyDOM, right?).

There isn't currently a XHTML LazyDOM implementation.  It's not all that hard
to implement, but there is a bit of a learning curve to know how to do it.

However, it doesn't sounds like your problem will be helped by a lazydom,
as it optimizes for data that doesn't change

> 1) Eliminate all the "white-space-text nodes" that are not really
> necessary in the duplicated "row" template2)

This could help; you might even be able to achieve this by changing
parser options (don't really remember the details).

>  Consider converting to HTML and using LazyDOM (will this really help me if
> I'm mostly creating new nodes?

nope..

>3) Pre-generate large chunks of the final DOM (a good majority of the
> duplicated "rows" are from domain data, and fairly static).
>4) Pre-generate the data has HTML at run-time, or even at compile time
> (see #3 above)

These could be a huge win.  Not only do you avoid DOM work, but the work
of getting the data to populate the DOM.

> 5) Look for minor optimizations that can be done to XMLC or Xerces itself.

probably a lot of work for a little gain unless you find something 
that is specificly a big hot spot

> 6) Find a better XML/XHTML Dom implementation than Xerces uses.

The xerces dom is pretty well optimized and with the current implementation
of XMLC, it's a bit of work to become DOM implementation independent.

The most important is to collect data before optimizing; one can waste a lot
of time and make code a lot more complex without accomplishing much (be there,
done that).  Personally, I found Jprobe to be a very useful profiling tool.
However, I haven't done java profiling (or much java programming) for over a
year, so I don't know the current state of things.

Mark


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe