I need to draw a straight line from a plenty of points ( 10 000 - 100 000 ). If I use QgsMapCanvasItem:: paint, it too long. I used method Douglas-Peucker ( http://www.codeproject.com/cpp/dphull.asp ), but it is necessary for me more quickly. How to increase speed of drawing?