Changeset 9878


Ignore:
Timestamp:
2005-05-16T11:35:32+12:00 (19 years ago)
Author:
davidb
Message:

Code used to test for doesProcessFile first and then
doesExplodeMetadataDatabases (both had be to be true to continue).
Profiling found doesProcessFile to have a high overhead, and so swapping
the two tests around has sped up execution time in a file drag 'n' drop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r9863 r9878  
    173173    for (int i = 0; i < library.size(); i++) {
    174174        Plugin plugin = (Plugin) library.get(i);
    175         if (plugin.doesProcessFile(file) == true && plugin.doesExplodeMetadataDatabases() == true) {
     175        if (plugin.doesExplodeMetadataDatabases() == true && plugin.doesProcessFile(file) == true) {
    176176        return true;
    177177        }
Note: See TracChangeset for help on using the changeset viewer.