Skip to content

breakpoint: remove_by_id is O(n) — index by id for large breakpoint sets #740

@Timi16

Description

@Timi16

File: src/debugger/breakpoint.rsBreakpointManager::remove_by_id

The method does a full linear scan of all breakpoints to find one by id. While unlikely to matter today, the VS Code DAP adapter may register many source breakpoints at once. A secondary HashMap<id -> function> would make this O(1).

Labels: performance, good-first-issue

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions