Laziness is better when it's visible. http://www.drmaciver.com/2017/03/laziness-is-better-when-its-visible/ … A data structure representation trick that seems weirdly under-used.
Presumably it allocates to a factor of current capacity, not absolute minimum bytes required?
-
-
No, because you're concatenating immutable buffers so each allocation is an entirely new copy of all the data.
-
Ah, my bad. I thought the point was meant to be more general.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.