• Itamar Haber's avatar
    Expands lazyfree's effort estimate to include Streams (#5794) · 18264d64
    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)
    (cherry picked from commit 5a9a653f)
    18264d64
lazyfree.c 6.66 KB