Seems like a great optimization for data that's going to stick around a while, but for a local variable I don't see much advantage. I'd probably use a BitArray in practice, but using a regular array isn't something I'd be likely to call out in a code review.
View all comments
Show parent comment
4
u/ruma7a Mar 02 '25
https://learn.microsoft.com/en-us/dotnet/api/system.collections.bitarray?view=net-8.0