[GRASS-dev] [GRASS GIS] #2185: Painfully Slow 'v.in.ogr' Vector Import
GRASS GIS
trac at osgeo.org
Tue Mar 21 04:24:46 PDT 2017
#2185: Painfully Slow 'v.in.ogr' Vector Import
-------------------------+------------------------------------------------
Reporter: justinzane | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Vector | Version: svn-trunk
Resolution: | Keywords: import, OGR, performance, v.in.ogr
CPU: x86-64 | Platform: Linux
-------------------------+------------------------------------------------
Comment (by neteler):
Wow. After full recompilation, with gcc it does "hang":
{{{
## gcc production
INTEL="-march=native"
MYGCC="-fdiagnostics-color"
MYCFLAGS="-O2 $INTEL $MYGCC"
MYCXXFLAGS="-O2"
MYLDFLAGS="-Wl,--no-undefined"
MYLDFLAGS="-s $MYLDFLAGS"
# clang
#CC=clang CXX=clang++ CFLAGS="-O2" CXXFLAGS="-O2" LDFLAGS="-s" ./configure
\
# gcc
LDFLAGS="$MYLDFLAGS" CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure
\
--with-cxx \
--enable-largefile \
...
}}}
Now:
{{{
GRASS 7.2.1svn (latlong_wgs84):~ > time -p v.in.ogr
in=world_AOI_latlong.geojson out=world_AOI_latlong --o
...
-----------------------------------------------------
1 input polygons
Total area: 2.37675E+13 (2 areas)
Area without category: 2.04916E+11 (1 areas)
-----------------------------------------------------
Copying features...
100%
Building topology for vector map <world_AOI_latlong at user1>...
Registering primitives...
3 primitives registered
19 vertices registered
Building areas...
100%
2 areas built
One isle built
Attaching islands...
100%
Attaching centroids...
100%
Number of nodes: 1
Number of primitives: 3
Number of points: 0
Number of lines: 0
Number of boundaries: 2
Number of centroids: 1
Number of areas: 2
Number of isles: 1
real 0.09
user 0.04
sys 0.01
}}}
So, unfortunate clang compiler settings before or gcc-is-better-than-clang
here?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2185#comment:34>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list