Bug 17214 – std.array.Appender has an unnecessary indirection

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-02-20T20:50:06Z
Last change time
2024-12-01T16:29:49Z
Keywords
trivial
Assigned to
No Owner
Creator
Jack Stouffer
Moved to GitHub: phobos#10242 →

Comments

Comment #0 by jack — 2017-02-20T20:50:06Z
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.
Comment #1 by robert.schadek — 2024-12-01T16:29:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10242 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB