• Itamar Haber's avatar
    Expands lazyfree's effort estimate to include Streams (#5794) · 5a9a653f
    Itamar Haber authored
    Otherwise, it is treated as a single allocation and freed synchronously. The following logic is used for estimating the effort in constant-ish time complexity:
    
    1. Check the number of nodes.
    1. Add an allocation for each consumer group registered inside the stream.
    1. Check the number of PELs in the first CG, and then add this count times the number of CGs.
    1. Check the number of consumers in the first CG, and then add this count times the number of CGs.
    
    (cherry picked from commit 5b0a06af)
    5a9a653f
lazyfree.c 6.66 KB