/[Apache-SVN]
ViewVC logotype

Revision 1373387


Jump to revision: Previous Next
Author: cstamas
Date: Wed Aug 15 13:16:23 2012 UTC (11 years, 7 months ago)
Changed paths: 1
Log Message:
Getting rid of heap memory hog when unneeded.

DefaultScannerListener hold a Set<String> with all the existing
UINFOs loaded up in initialisation part of processing when
update was happening. The solely purpose of this set was, that
as last step, create diff with processed UINFOs and delete from index
the files not found while scanning but on index. This step makes sense
for contexts that does NOT receive updates from remote, as they are
actually "hosted" reposes (in MRM lingo). In case of "proxy" reposes,
if Indexer did not find a file locally, but is on index, it is
probably a file present on remote (proxied) repository, who's published
index was already downloaded once.

Also, the method removeDeletedArtifacts() making use of this set
was invoked with same condition as the building of set is now
enclosed.

Meaning, the potentially huge Set<String> will not be built anymore
unless really needed and used.

Changed paths

Path Details
Directorymaven/indexer/trunk/indexer-core/src/main/java/org/apache/maven/index/DefaultScannerListener.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26