Skip to content

Clean up and optimize recursive prefix testing logic #2

@apokalyptik

Description

@apokalyptik

There are probably several places in the kvTrie and bwTrie methods which can have one or more of the following improve performance:

  • Early return/continue conditions
  • Avoid multiple len() counts on the same string/byte data
  • Better commenting about states considered when comparing keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions