Skip to content

perf(tui): body_failures set built by scanning every session on each redraw #128

Description

@Ariestar

CodeRabbit nitpick on PR #81 (thread-names), src/commands/browse/picker.rs.

The body_failures construction runs on each redraw (including each 100ms tick while a load is in flight) and iterates the full merged sessions list, calling SessionColumn::body_failure per session (linear source lookup plus a format! allocation). With zero failures the work is proportional to the total session count for no result.

Suggested direction: expose an iterator over the recorded failures on SessionColumn and build the set from it, so redraw cost is proportional to the failure count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions