Skip to content

CamelCase matcher has a poor performance #650

@mattirn

Description

@mattirn

CamelCase matcher has a poor performance when completing word has a lot of upper case chars. In an extreme case it can fail to complete:

groovy-repl> setopt complete-matcher-camelcase 
groovy-repl> VERY_LONG_SNAKE_CASE_VARIABLE='string'
groovy-repl> VERY_LONG_SNAKE_CASE_VARIABLE.toUpperCase()
STRING
groovy-repl> # fails to complete below...
groovy-repl> VERY_LONG_SNAKE_CASE_VARIABLE.tuc 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions