Thread overview
[Issue 19983] Add fast path using slice assignment to std.internal.cstring.tempCString
[Issue 19983] Add fast path for std.internal.cstring.tempCString when copying an array without transcoding
Jun 18, 2019
Dlang Bot
Jun 23, 2019
Nathan S.
Jun 23, 2019
Nathan S.
Jun 27, 2019
Dlang Bot
June 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19983

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@n8sh created dlang/phobos pull request #7079 "Issue 19983 - Add fast path for std.internal.cstring.tempCString when copying an array without transcoding" mentioning this issue:

- Issue 19983 - Add fast path for std.internal.cstring.tempCString when copying an array without transcoding

https://github.com/dlang/phobos/pull/7079

--
June 23, 2019
https://issues.dlang.org/show_bug.cgi?id=19983

--- Comment #2 from Nathan S. <n8sh.secondary@hotmail.com> ---
Array slice assignment operations are probably fast if the type defines them. Should use them if possible for all input types, not just built-in arrays.

--
June 23, 2019
https://issues.dlang.org/show_bug.cgi?id=19983

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add fast path for           |Add fast path using slice
                   |std.internal.cstring.tempCS |assignment to
                   |tring when copying an array |std.internal.cstring.tempCS
                   |without transcoding         |tring

--
June 27, 2019
https://issues.dlang.org/show_bug.cgi?id=19983

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #7079 "Issue 19983 - Add fast path using slice assignment to std.internal.cstring.tempCString" was merged into master:

- 02659f65baafb2fb5d775b18b8be3746146ca22d by Nathan Sashihara:
  Fix Issue 19983 - Add fast path using slice assignment to
std.internal.cstring.tempCString

  This is applicable for narrow strings when the output type matches the
  string's encoding type.

https://github.com/dlang/phobos/pull/7079

--