From: Xuan B. <med...@us...> - 2008-06-18 03:27:58
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/merged In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6668/src/org/tm4j/topicmap/tmdm/merged Modified Files: MergedTopicMapView.java Log Message: Comments on performance. Index: MergedTopicMapView.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/merged/MergedTopicMapView.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MergedTopicMapView.java 11 Jun 2008 02:27:17 -0000 1.11 --- MergedTopicMapView.java 18 Jun 2008 03:28:02 -0000 1.12 *************** *** 585,588 **** --- 585,589 ---- } + // FIXME: PERFORMANCE: Note that this is slow for excessively merged topics (e.g. where there are many component topics for one MergedTopics) for (Locator subjectLocator : mergedTopic.getSubjectLocatorsCollection()) { removeResult = subjectLocatorToMergedTopic.remove(subjectLocator); *************** *** 591,594 **** --- 592,596 ---- } + // FIXME: PERFORMANCE: Note that this is slow for excessively merged topics (e.g. where there are many component topics for one MergedTopics) for (ReadableTopic topic : mergedTopic.getComponents()) { removeResult = topicToMergedTopic.remove(topic); |