Skip to content

if this is too slow, optimize storage #418

@github-actions

Description

@github-actions

fn get_connection(&self, idx: u32) -> &iroh_quinn::Connection {
debug_assert!(idx < self.player_count);
// TODO: if this is too slow, optimize storage
self.connections
.iter()
.find(|(i, _)| *i == idx)
.map(|(_, c)| c)
.unwrap()


This issue was generated by todo-issue based on a TODO comment in 6a55dc2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code:todoA TODO/FIXME comment in code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions