Skip to content

Prevent Follow TCP from freezing when switching streams #90

Description

@NghiaTranUIT

Problem

  • The Follow TCP window can freeze for several seconds after moving to the next or previous stream.
  • This happens more often when the stream contains a large amount of text or one very long line.
  • Moving the mouse over the transcript can make the app prepare the full text, including content outside the visible area.
  • The work runs on the main app thread, so the window stops responding until it finishes.

Solution

  • Prepare only the part of the transcript that is visible on screen.
  • Do not prepare text that is outside the visible area until the user scrolls to it.
  • Keep the loading view visible while a new stream is being prepared.
  • Use simple left-to-right character wrapping for network text to avoid slow text direction checks.
  • Find the hovered packet with a fast lookup instead of checking every packet.

Expected result

  • Switching TCP streams should remain responsive.
  • Hovering a transcript row should show the Show Packet button without freezing the app.
  • Large streams should load safely without blocking the window for several seconds.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions