Author: ruschein
Date: 2011-08-24 15:21:04 -0700 (Wed, 24 Aug 2011)
New Revision: 26634
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
Log:
Micro optimisation for the loading of large networks.
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
2011-08-24 22:09:27 UTC (rev 26633)
+++
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/ArraySubGraph.java
2011-08-24 22:21:04 UTC (rev 26634)
@@ -79,8 +79,8 @@
internalSUID = SUIDFactory.getNextSUID();
- nodeSet = new HashSet<CyNode>();
- edgeSet = new HashSet<CyEdge>();
+ nodeSet = new HashSet<CyNode>(20000);
+ edgeSet = new HashSet<CyEdge>(20000);
internalNodeCount = 0;
internalEdgeCount = 0;
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.