Changeset 23177


Ignore:
Timestamp:
08/24/18 11:28:09 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not check for file existence, just use fopen, this saves several seconds (found through profiler)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/archive/archread.m

    r21166 r23177  
    1313        end
    1414
    15         if ~exist(filename,'file')
     15        %open file
     16        fid=fopen(filename,'rb');
     17        if fid==-1
    1618                error(['Error: File: ' filename ' does not exist.']);
    1719        end
    1820
    19         fid=fopen(filename,'rb');
    2021        % Get structure of file
    2122        field_names={};
Note: See TracChangeset for help on using the changeset viewer.