Changeset 10689


Ignore:
Timestamp:
2005-10-05T14:27:23+13:00 (19 years ago)
Author:
kjdon
Message:

with java 1.5 the tudor collection was taking ages to copy. here we reversed the order in which the files in a directory are being added to the job queue -so when you try to add it into the tree alphabetically, there will be only one comparison each time, rather than having to search through all the files already there. line 425

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r10626 r10689  
    423423                    // Next loop
    424424                    // remove(position) = 'b'              ...[d][c]
    425                     for(int i = 0; i < origin_node.getChildCount(); i++) {
     425                    //for(int i = 0; i < origin_node.getChildCount(); i++) {
     426                    for (int i=origin_node.getChildCount()-1; i>=0; i--) {
    426427                    child_record = (FileNode) origin_node.getChildAt(i);
    427428                    addJob(job.ID(), job.source, child_record, job.target, directory_record, job.type, false, position);
Note: See TracChangeset for help on using the changeset viewer.