On Fri Feb 7 10:14:32 2025 +0000, Rémi Bernon wrote:
It feels weird to have two caches caching the same things. We should IMO decide that these fds are never cached, or decide that they might be cached, then you could dup the fd if necessary and still close the handle, it'll save you space (this seems to be an important aspect according to the handle field comment) and code.
Yeah, that's true enough, we don't need to cache the fd here.
I think it's this way as a relic of an earlier revision in which the objects weren't individual fds but rather lived in a distinct ID namespace. I'll revise it to use the fd cache instead.