• Brenden Blanco's avatar
    Update after lookup in map.increment for HASH types · 23fc5890
    Brenden Blanco authored
    Performing the update before lookup incurs an extra spinlock in the
    kernel, which hurts performance. Reorder the code and increment to 1.
    The memset is there I believe due to some type mismatch warnings, so I'm
    leaving as is rather than doing a direct assign to 1. The resulting code
    is optimized away anyway.
    
    Fixes: #1314
    Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
    23fc5890
b_frontend_action.cc 31.4 KB