Skip to content

Topics as RwLock instead of Mutex #23

@Nereuxofficial

Description

@Nereuxofficial

Having benchmarked the performance of the broker i examined for possible performance gains.(Also IME it's the slowest when i've been fuzzing it)

I think a tokio's RwLock may increase the performance. I'd have to look into it, since it's been a while since i've been working with the broker, however if most accesses are Reads this could increase the performance significantly.

Do you think this is worthwhile? @mfloto

Edit: subscribing to the sender only requires read access

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions