At the moment, the mapping is done with the help of a hashmap, however, this may not make sense in terms of space complexity. Because a machine can have any arbitrary amount of connections and sockets, a good solution can be to use different data structures/algorithms for determining mapping depending on the amount of data need to be processed.
The goal is to run as light as possible and as fast as possible.
At the moment, the mapping is done with the help of a hashmap, however, this may not make sense in terms of space complexity. Because a machine can have any arbitrary amount of connections and sockets, a good solution can be to use different data structures/algorithms for determining mapping depending on the amount of data need to be processed.
The goal is to run as light as possible and as fast as possible.