Skip to content

Conversation

hodgesds
Copy link
Contributor

Add separate thread from symbolization to remove symbolization from the TUI render thread. This fixes stalls in TUI rendering from symbolization.

@hodgesds hodgesds changed the title scx_p2dq: Add async symbolization scxtop: Add async symbolization Aug 20, 2025
Add separate thread from symbolization to remove symbolization from the
TUI render thread. This fixes stalls in TUI rendering from
symbolization.

Signed-off-by: Daniel Hodges <[email protected]>
@hodgesds hodgesds force-pushed the scxtop-async-symbolization branch from f384036 to 13ee79b Compare August 20, 2025 15:19
let (resp_tx, resp_rx) = mpsc::channel::<SymbolizationResponse>();

// Spawn the worker thread
thread::spawn(move || {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth switching to tokio::spawn and tokio::mpsc for uniformity, you can still do a receive in a sync context with try_recv which I think is appropriate for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants