Advice wanted on garbage collection of sockets for c++ programmer using D
cym13 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 27 05:36:05 PDT 2017
On Tuesday, 27 June 2017 at 12:29:03 UTC, Guillaume Piolat wrote:
> [...]
Hmm... Isn't it possible to just allocate the object/a pool of
objects outside the loop and reuse it? Everybody's proposing
other means of allocations which is nice, but I wonder why there
is such a need for reallocations in the first place.
Of course the specifics depend on the implementation, maybe it
isn't as straightforward. It's just that no allocation is faster
than reallocation no matter what reallocation method is used.
More information about the Digitalmars-d-learn
mailing list