Opened 8 years ago

Last modified 6 years ago

#3180 new enhancement

Make rendering of points faster by avoding memory allocation

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: minor Milestone: 7.6.2
Component: Display Version: svn-trunk
Keywords: d.vect, d.graph, d.labels, points, symbols, speed, rendering, memory Cc:
CPU: Unspecified Platform: Unspecified

Description

Rendering of large number of points (symbols) takes a long time. The rendering function symbol() (backend for D_symbol() and D_symbol2()) in symbol.c (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.

Change History (5)

comment:1 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 by neteler, 7 years ago

Milestone: 7.4.17.4.2

comment:3 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:4 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.