mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Currently we use list to store socket connections. This is fine for smaller number of connections. But when we scale up, traveling through a list of hundreds or thousands of connections just to find a single one of them is very low efficient. This patch replaces the list with a (Unix.file_descr -> Connection.t) hash table. Signed-off-by: Zheng Li <dev@zheng.li> Reviewed-by: David Scott <dave.scott@citrix.com>