Author: ruschein
Date: 2011-08-24 16:35:48 -0700 (Wed, 24 Aug 2011)
New Revision: 26635

Modified:
   
core3/impl/trunk/io-impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
Log:
Performance optimisation.

Modified: 
core3/impl/trunk/io-impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
===================================================================
--- 
core3/impl/trunk/io-impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
     2011-08-24 22:21:04 UTC (rev 26634)
+++ 
core3/impl/trunk/io-impl/src/main/java/org/cytoscape/io/internal/read/sif/SIFNetworkReader.java
     2011-08-24 23:35:48 UTC (rev 26635)
@@ -93,10 +93,11 @@
 
        private void readInput(TaskMonitor tm) throws IOException {
                this.parentTaskMonitor = tm;
-               tm.setProgress(0.0);
+//             tm.setProgress(0.0);
 
                String line;
-               final BufferedReader br = new BufferedReader(new 
InputStreamReader(inputStream));
+               final BufferedReader br =
+                       new BufferedReader(new InputStreamReader(inputStream), 
128*1024);
                Map<String, CyNode> nMap = new HashMap<String, CyNode>(10000);
 
                CyNetwork network = cyNetworkFactory.getInstance();
@@ -134,14 +135,14 @@
                }
 
                br.close();
-               tm.setStatusMessage("Network data loaded from data 
source.\nCreating Cytoscape network...");
+//             tm.setStatusMessage("Network data loaded from data 
source.\nCreating Cytoscape network...");
 
                nMap.clear();
                nMap = null;
 
                this.cyNetworks = new CyNetwork[] {network};
                
-               tm.setProgress(1.0);
+//             tm.setProgress(1.0);
 
                logger.debug("SIF file loaded: ID = " + network.getSUID());
        }

-- 
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.

Reply via email to