I checked the commit logs - the double parsing was introduced in rev 1633182.

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 4/18/2015 6:12 PM, Adrian Crum wrote:
I spent the day looking through the OFBiz startup code to see if there
is any way we can shorten the startup time.

Something I noticed that seems odd...

Start.java searches the OFBiz folders for all instances of
ofbiz-component.xml files, parses them, and builds a class path based on
their contents. Then Start.java loads the components using
ComponentContainer.java, and that class also parses ofbiz-component.xml
files. So the ofbiz-component.xml files are parsed twice.

I would like to redesign the component loading a bit to eliminate the
double parsing.

What do you think?


Reply via email to