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/ppMergeData.c

    r7073 r7759  
    99    )
    1010{
     11    if (data->files) {
     12        for (long i = 0; i < data->files->n; i++) {
     13            psFitsClose(data->files->data[i]);
     14            data->files->data[i] = NULL;
     15        }
     16        psFree(data->files);
     17    }
    1118    psFree(data->in);
    1219    psFree(data->out);
     
    2330
    2431    data->numCells = 0;
     32    data->files = NULL;
    2533    data->in = NULL;
    2634    data->out = NULL;
Note: See TracChangeset for help on using the changeset viewer.