Bug 19404 – Optimize std.string.stripRight

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-16T02:03:41Z
Last change time
2018-11-16T04:44:58Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-11-16T02:03:41Z
`stripLeft` can entirely avoid decoding for wchar arrays and can benefit from an ASCII fast path for char arrays.
Comment #1 by n8sh.secondary — 2018-11-16T02:28:03Z
Comment #2 by github-bugzilla — 2018-11-16T04:44:58Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/c380684bdb8c3a29cad78f8499a600c6a74a1e5b Fix Issue 19404 - Optimize std.string.stripRight https://github.com/dlang/phobos/commit/329f891caf7a409f7f301dce1425c946de3a07ae Merge pull request #6770 from n8sh/issue-19404 Fix Issue 19404 - Optimize std.string.stripRight