[Issue 13159] std.socket.getAddress allocates once per DNS lookup hit
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 29 14:18:45 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=13159
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
???
A concatenation is not an allocation! The runtime will effectively increase
arrays when they are appended to by powers of two until the GC block size (4096
bytes), because GC object bins have sizes of powers of two (16 to 2048).
Furthermore, didn't recent benchmarks show that std.array.appender performed no
better than built-in arrays for concatenation?
--
More information about the Digitalmars-d-bugs
mailing list