IMO using a separate std.bit_set
for “is removed” status is pretty good. You can loop through “set bits” very quickly. I posted about using this technique to implement a simple ECS here: Simple ECS implementation inspired by Zig's MultiArrayList
2 Likes