In order to match requests and responses, an index is used to identify them as a pair. A map should be used to store these data instead of a hashtable. See below.
Why [not use hashtables]? What do you want us to use instead?
Maps, Hashtbl's are mutable but they also have collision, which makes them quite tricky to analyze, especially in a critical environment such as a blockchain, so don't use them unless you really need that additional bit of performance
In order to match requests and responses, an index is used to identify them as a pair. A map should be used to store these data instead of a hashtable. See below.
Originally posted in https://github.com/marigold-dev/deku/issues/432#issuecomment-1046873460