What is the fastest way to look up a list for 0 or 1 values?
I used an Array which was very fast like:
and each entry would either have a value of 0 or 1.Code:int boolList[5000];
I would then check this like:
...but that needs to be initialized to a set number of entries. I would like to be able to have the same speed but also be able to set number of entries at runtime. A linked list would be a lot slower right? The predefined lists I tested with was but I'm not sure how much bulk they had. Ideas?Code:if (boolList[i])