Skip to content

EquationAutoComplete rebuilds full suggestion list per keystroke #1099

@lwhite1

Description

@lwhite1

File

courant-app/src/main/java/systems/courant/sd/app/canvas/EquationAutoComplete.java, lines 502-514

Description

Every keystroke calls getRichSuggestions() which iterates all model elements and all built-in functions. The suggestion list only changes when elements are added/removed/renamed, not on every keystroke.

Impact

Could cause perceptible input lag in equation fields for large models (hundreds of elements).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions