Skip to content

Text.Parsing.Parser.String.string parser efficiency #105

@jamesdbrock

Description

@jamesdbrock

case indexOf (wrap str) input of
Just 0 -> do

Does this scan all the way to the end of the input string, looking for a match, even though it already knows it failed when it doesn't find a match at index 0? If that's what it's doing, that would be very inefficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions