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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 5 04:41:34 UTC 2021


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

          Issue ID: 22280
           Summary: [optimization]: std.conv.parse!(int, string) counts
                    when doCount is false
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

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.

--


More information about the Digitalmars-d-bugs mailing list