Drawing is expensive, especially text drafting has become the most expensive task of the processor GUI.
The only way to speed it up is to reduce the number of elements drawn. Check if you really draw only the items that you need. The expose event gives you a rectangle. Update only this part of the widget.
Possibly cache elements in a bitmap.
For smooth scrolling, for example, this can help draw content into a bitmap, for example, 500 pixels, so in most cases you just need to copy the image and not draw at all (you usually get rectangles only 5 to 10 pixels high when scrolling )
But you need to give us more information about what you are drawing and that loading the system is the best answer.
source share