[Issue 18899] destroy is inefficient for small structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 9 11:09:36 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18899
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #10 from Nick Treleaven <nick at geany.org> ---
For the record, Andrei wants to solve this by not blitting init for primitive
types:
https://github.com/dlang/druntime/pull/2126
> memcpy should be an intrinsic
Would that allow unrolling loops when the length is known at compile-time?
An interim improvement might be to have an array version of std.algorithm.copy
in druntime (which phobos then uses internally).
--
More information about the Digitalmars-d-bugs
mailing list