foxssake / noray

Simple connection orchestrator and relay
MIT License
18 stars 5 forks source link

Profile relay lookup #28

Open elementbound opened 1 year ago

elementbound commented 1 year ago

Background

For each packet, Noray has to look up the relay associated with the sender AND the target. Both of these are done with a simple Array.find, which loops all the relays. This is a hot path and we want to make sure it's performant.

Done criteria