• Nils Goroll's avatar
    Avoid a second rbtree lookup in VRT_priv_task() · 6efccf76
    Nils Goroll authored
    For a red-black tree insert in vrt_priv_dynamic(), we performed a lookup
    and then an insert, resulting in basically the same tree traversal
    twice.
    
    We now prepare a new struct vrt_priv on the workspace and release it if
    the respective priv already existed on the tree.
    
    For a full workspace, we fall back to a lookup via
    vrt_priv_dynamic_get().
    6efccf76
cache_vrt_priv.c 6.38 KB