IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 11:00:41 AM (20 years ago)
Author:
Paul Price
Message:

Instead of doing open/close each time we want to read (which is really expensive), we hold an array of file pointers. This should make for a significant boost in speed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCheckInputs.c

    r7580 r7759  
    3131        data->in->n = filenames->n;
    3232    }
     33    if (!data->files) {
     34        data->files = psArrayAlloc(filenames->n);
     35        data->files->n = filenames->n;
     36    }
    3337    int numGood = 0;                    // Number of good files
    3438    for (int i = 0; i < filenames->n; i++) {
     
    5155            psMetadataPrint(stdout, header, 9);
    5256        }
    53         psFitsClose(inFile);
     57        data->files->data[i] = inFile;
    5458
    5559        // The formats must be identical.  The chief reason for this is so that we know what output format to
Note: See TracChangeset for help on using the changeset viewer.