gurk-rs icon indicating copy to clipboard operation
gurk-rs copied to clipboard

Reuse buffers when drawing

Open boxdot opened this issue 3 years ago • 0 comments

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.

boxdot avatar Nov 20 '22 11:11 boxdot