I just learnt that e.g. on Windows drawing with cairo to a GDI surface
is several times slower than drawing to an image surface and then
blitting the image onto the GDI surface.
This is confirmed by my experiments with "splot" - rendering to a PNG
file is several times faster than to a window, while I'm on Windows.
I think this approach should be implemented in
Graphics.Rendering.Chart.Gtk.renderableToWindow and it should not take
more than a few lines of code.
(unfortunately I don't have time to do it immediately, but I figured
that it's still better to at least mention the issue, maybe someone
else can do it?)
--
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/