gurk-rs
gurk-rs copied to clipboard
Reuse buffers when drawing
There is a simple optimization which can be done during drawing. In draw.rs, we often allocate new buffer (usually Vecs). Instead we could provide the buffers from the outside and by using v.clear(); v.extend(...) reuse the allocated memory.