Bug 19308 – Optimize std.string.stripLeft

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-17T01:09:49Z
Last change time
2018-10-18T14:49:19Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-10-17T01:09:49Z
`stripLeft` has room for improvement by avoiding redundant decoding and adding a proper fast path for ASCII.
Comment #1 by n8sh.secondary — 2018-10-17T01:12:08Z
Comment #2 by github-bugzilla — 2018-10-18T14:49:18Z
Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/2e6c538dc69b74125cfd7f39376b0d9289565728 Fix issue 19308 - optimize stripLeft Add ASCII fast path to stripLeft & avoid redundant decoding.