[xml] Using flyweights to reduce DOM size



I tried to parse a 54M XML file today (the gcide websters dictionary) to
see what would happen. When it started to go into swap I had to kill it...

MSXML uses flyweights [1] to reduce the size of thier DOM. They have some
documentation on MSDN about how a MSXML DOM is generally about 0.9 to 1.1
times the size of the original XML. I believe they also get a performance
boost from this.

Any thoughts on using the flyweight design pattern in libxml?

[1] A well known design pattern, see
http://www.mindspring.com/~mgrand/pattern_synopses.htm#Flyweight

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]