Re: [PATCH v3 4/4] rust: binder: shrink all_procs when deregistering processes

From: Shivam Kalra

Date: Tue Feb 10 2026 - 06:47:35 EST


On 09/02/26 19:24, Alice Ryhl wrote:
>
> Hmm. This way we need to reallocate immediately if one more process is
> added. How about:
>
> if len < cap / 4 {
> shrink_to(cap / 2);
> }
>
> Alice
Good point, that avoids the shrink-then-immediately-regrow pattern.
Will adopt this for v4.