I think it should have a map #{streamid() => #stream{}} and another map #{ref() => streamid()}, acting as an index. I suspect there's more needs to lookup by streamid() rather than ref() because many requests do not stream their request body and so there's no lookup needed for them. There might be flow control but that should happen less than receiving data.
I think it should have a map
#{streamid() => #stream{}}
and another map#{ref() => streamid()}
, acting as an index. I suspect there's more needs to lookup bystreamid()
rather thanref()
because many requests do not stream their request body and so there's no lookup needed for them. There might be flow control but that should happen less than receiving data.