[GRASS-dev] [GRASS GIS] #3180: Make rendering of points faster by avoding memory allocation

GRASS GIS trac at osgeo.org
Mon Oct 10 19:20:44 PDT 2016


#3180: Make rendering of points faster by avoding memory allocation
-------------------------------------------------+-------------------------
 Reporter:  wenzeslaus                           |      Owner:  grass-dev@…
     Type:  enhancement                          |     Status:  new
 Priority:  minor                                |  Milestone:  7.4.0
Component:  Display                              |    Version:  svn-trunk
 Keywords:  d.vect, d.graph, d.labels, points,   |        CPU:  Unspecified
  symbols, speed, rendering, memory              |
 Platform:  Unspecified                          |
-------------------------------------------------+-------------------------
 Rendering of large number of points (symbols) takes a long time. The
 rendering function `symbol()` (backend for `D_symbol()` and `D_symbol2()`)
 in [source:grass/trunk/lib/display/symbol.c?rev=55460#L54 symbol.c]
 ([https://grass.osgeo.org/programming7/symbol_8c_source.html Programming
 manual]) calls `G_malloc()`. I didn't do any profiling, but according to
 my experience, `G_malloc()/G_free()` called hundreds of times will
 negatively influence the performance. It would be nice if we can avoid
 that allocation and perhaps even the following for loop.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3180>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list