Re: [PATCH] rust: slab: add basic slab module
From: Elijah
Date: Thu Sep 25 2025 - 14:06:05 EST
On 9/25/2025 10:43 AM, Danilo Krummrich wrote:
> Anyways, I'd also like to hear some more opinions, especially
regarding (4), as
> mentioned.
ok I just looked it over. I think (4) isn't really viable, the cache
pointer storage overhead is probably too much (in addition to some
complex issues). I don't really like having a macro (so (3) basically)
and I think there are issues with non-static caches, I don't know
specifically though. obviously (1) doesn't work. (2) is exactly what I
was thinking specifically for rbtree. IMO the only useful options are
(2) and (3). I would say maybe implement (2) first and if you want
macro-generated ZST allocators they can wrap whatever that Box ends up
being.
> not having dynamic dispatch for a
kmemcache backed Box is probably not that big of a deal though
I agree