Bug 22280 – [optimization]: std.conv.parse!(int, string) counts when doCount is false

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-05T04:41:34Z
Last change time
2024-12-01T16:39:17Z
Keywords
performance
Assigned to
No Owner
Creator
Jack Stouffer
Moved to GitHub: phobos#9829 →

Comments

Comment #0 by jack — 2021-09-05T04:41:34Z
Counting increment instructions are still issued in std.conv.parse!(int, string) when the doCount template parameter is false. These lines should be behind a static if and save a couple of cycles.
Comment #1 by robert.schadek — 2024-12-01T16:39:17Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9829 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB