[Issue 17214] New: std.array.Appender has an unnecessary indirection
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 20 12:50:06 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17214
Issue ID: 17214
Summary: std.array.Appender has an unnecessary indirection
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: jack at jackstouffer.com
The internal variables are stored in a Data struct which is then allocated on
the GC and stored as a pointer in the struct. While this reduces the size of
Appender, this indirection is unnecessary and also results in extra GC memory
being allocated than needed.
--
More information about the Digitalmars-d-bugs
mailing list