Skip to content

Lag when starting to type comment with Similar comments open #484

Description

@Terrance

I have the Similar comments tab open, as for most activities I have a pool of reused comments (though perhaps too many and often-enough changed that tags are more awkward to use here) -- it's generally useful to type the first few characters and select the matching one.

However, a couple of my activities have a large number of unique comments (typically noting down some reference just for that instance). For these activities, there's a noticeable moment of lag after typing the first character -- I'm guessing it's either where the query to fetch similar comments starting with that character runs a bit slow, or a large number of UI buttons are generated at once) which nearly always mean the second character I type gets lost. Past the first character it seems to be ok, so I assume this is down to there just being too many results to start with.

Not sure if the query or UI can be optimised here; I can see from the scrollbar that the rendering of UI buttons is paged to some extent already.

Alternatives: I can toggle off the Similar comments view, but then it's constantly on and off between different types of activity and the input generally feels a bit clunky to use while fiddling with the active tabs. The similar comment search also covers all activities, whereas perhaps it should just search the current one?

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