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.
This will be solved by better organized TreeSet. (Tomas is working on patch.) Here are current data: *src.zip*: elements: 8811, Leaf nodes: 4406, Average tree depth: 13.7206, RMSE: 1.6552513 deserialization time: 235ms *rt.jar*: elements: 9086 Leaf nodes: 4543, Average tree depth: 13.8003, RMSE: 1.6414597 deserialization time: 145ms *javacore.jar*: elements: 381, Leaf nodes: 191, Average tree depth: 8.9581, RMSE: 1.2970917 deserialization time: 25ms *core.jar*: elements: 253, Leaf nodes: 127, Average tree depth: 8.4409, RMSE: 1.354906 deserialization time: 8ms *antlibant.jar*: elements: 548, Leaf nodes: 274, Average tree depth: 9.6825, RMSE: 1.568200 deserialization time: 9ms *RMSE -- root mean-square error
new data (with patch applied): *src.zip*: elements: 8811, Leaf nodes: 4096, Average tree depth: 13.1514, RMSE: 0.3584502 deserialization time: 206ms *rt.jar*: elements: 9086 Leaf nodes: 4096, Average tree depth: 13.2185, RMSE: 0.4132829 deserialization time: 105ms *javacore.jar*: elements: 381, Leaf nodes: 128, Average tree depth: 8.9844, RMSE: 0.12450690 deserialization time: 8ms *core.jar*: elements: 253, Leaf nodes: 126, Average tree depth: 8.0000, RMSE: 0.00000000 deserialization time: 7ms *antlibant.jar*: elements: 548, Leaf nodes: 256, Average tree depth: 9.1445, RMSE: 0.352316 deserialization time: 10ms The times varies in different runs in both measurements, but for large indexes (like src.zip and rt.jar), the number are consistently better. The most interesting thing is low RMSE value.
Fixed in trunk. Checking in ClassIndex.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/ClassIndex.java,v <-- ClassIndex.java new revision: 1.36; previous revision: 1.35 done
Reorganization of java component