mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
ab89b48143
The mapping between code and its handler is static. We can drop the HashMap in favour of a static match expression. This has two benefits: 1. No more memory allocation and deallocation for the HashMap. 2. Shorter look-up time. Signed-off-by: Wei Liu <liuwe@microsoft.com>