This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27293

Summary: Write out Modules/*.xml files in "canonical" format
Product: platform Reporter: Jesse Glick <jglick>
Component: AutoupdateAssignee: akemr <akemr>
Status: VERIFIED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 26786    

Description Jesse Glick 2002-09-13 07:05:38 UTC
For performance reasons, the module system now
hopes that Modules/*.xml files are in a rigid file
format - the exact format that it in fact writes
them out in. If it finds them in this exact
format, it can parse them more quickly than with
an XML parser.

AU, however, writes out files in a slightly
different way. This causes the module system to
have to fall back to the full XML parse, wasting a
bit of startup time. For example, install treefs
from AU and restart and you will see:

[org.netbeans.core.modules] Note - failed to parse
Modules/org-netbeans-modules-treefs.xml the quick
way, falling back on XMLReader

Please look at
org.netbeans.core.modules.ModuleList and copy that
exact formatting, byte for byte. If successful,
AU-generated XML files should exactly match the
module-system-written ones, and this warning will
not appear.
Comment 1 akemr 2002-09-13 10:07:39 UTC
Fixed in trunk.
Comment 2 Lukas Hasik 2003-08-05 15:50:06 UTC
x