[Gdal-dev] AVC speedup patch

Frank Warmerdam warmerdam at pobox.com
Mon Apr 7 11:19:07 EDT 2003


Carl Anderson wrote:
> 
> The included patch speeds up the ogr/orgsf_formats/avc backend format
> 
> The curent behavior is to try a file stat() on the upper and lower case
> for each letter of the file path of the coverage.  That is a lot of
> file stat()s.  In many cases the entire file is either all lower case
> (Arc/Info in Solaris) or all upper case.
> 
> This patch tries these two common cases before trying all the other
> permutations.
> 
> It speeds up an AvcReadOpenfile from 98 seconds to 1 second.
> (Arc/Info Solaris Workspace with 1500 coverages)
> 
> 
> I have backported to the avce00 lib if anyone desires.

Carl,

Could you submit this through bugzilla?  I will reassign to Daniel to put in
avce00 library and then updated GDAL from the latest avce00 code.   I hadn't
realized this rather expensive approach was being used!

Thanks,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list