Opened 16 years ago
Closed 16 years ago
#1989 closed defect (fixed)
OGR AVC driver is slow to detect non matching files
Reported by: | Even Rouault | Owned by: | Daniel Morissette |
---|---|---|---|
Priority: | high | Milestone: | 1.6.0 |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | ogr avc |
Cc: | warmerdam, Mateusz Łoskot, Even Rouault |
Description
When OGR tries to open a big file (let's a 50 MB GPX file), the OGR AVC driver spends quite a lot of time (in AVCE00ReadOpenE00, called by OGRAVCE00DataSource::Open()) to parse it before realizing that it isn't concerned by the file.
According to Daniel Morissette, it should be possible to detect that it's a E00 file form the first few bytes in the file.
Change History (7)
comment:1 by , 16 years ago
Component: | default → OGR_SF |
---|
comment:2 by , 16 years ago
Cc: | added |
---|---|
Milestone: | → 1.5.0 |
comment:3 by , 16 years ago
Frank, what would you think of moving the call RegisterOGRAVCBin() closer to the end of the list for 1.5.0 and then move this to the 1.6.0 milestone?
comment:5 by , 16 years ago
Cc: | added |
---|---|
Milestone: | 1.5.2 → 1.6.0 |
Priority: | normal → high |
Boosting priority.
See #2395 for a test case that made it necessary for the GPX and KML drivers to be fixed.
comment:6 by , 16 years ago
Fixed in r15081.
AVCE00ReadOpenE00() has been modified to look for "EXP " at the beginning of the file. If the file doesn't start with "EXP " then it is rejected right away.
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This problem has also been found to be at the root of #1943. Setting milestone to 1.5.0.