Performance/load performance implement

From Apache OpenOffice Wiki
< Performance
Revision as of 07:27, 22 July 2009 by Zengliangjun (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Implement is in 'xmloff', and each element processing is divided into several steps:1 )processElement() : Process element2) _startElement() : Start element3) processSubContexts() : Sub elements process, if this element is a parent element.every sub element processing will be divided into three steps.4)_createChildContext(): Create Sub Context 5)_processSubContext(): Process sub element 7)_collectSubContext(): Collect the sub element's result data 9) _characters(): Process element's content10)_endElement(): End element11)commit(): commit the result data to parent elementAnd every parent element has three solutions to process sub elements:a) Serial processing b) Parallel processingc) delayed processingIn the 'content.xml' stream, It is 'c)' the top parent element of display element.In the 'settings.xml/styles.xml' stream, It is 'b)' the top parent element of setting/style element.And 'meta.xml', 'settings.xml', 'styles.xml', 'content.xml' It is serial processing.


[[Image:]]

Personal tools