[Issue 5548] Efficient std.conv.to conversions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 2 08:03:27 PST 2017


https://issues.dlang.org/show_bug.cgi?id=5548

Jack Stouffer <jack at jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance
                 CC|                            |jack at jackstouffer.com
           Hardware|Other                       |All

--- Comment #4 from Jack Stouffer <jack at jackstouffer.com> ---
Definitely agree that this should exist. Currently in the array overloads,
there are a lot of uses of functions that use appender internally and then
return the managed array with app.data(), only to be appended to another
appender in the parent function. Having OutputRange overloads would represent a
significant performance boost.

Once https://github.com/dlang/phobos/pull/5018 is pulled, I'll start working on
this.

BTW, in the mean time, converting to string can be used with OutputRanges via
std.range.put and std.conv.toChars.

--


More information about the Digitalmars-d-bugs mailing list