I was pondering about this the other night. A string based flag list (that is, something like "dark inside safe") fairly easy to parse and has no max limit of flags. A bit based flag list (using ints) is very fast and relatively easy to manipulate, but it has a maximum capacity (though it can be extended like SMAUG).
My question is thus: which is better? Is the flexibility of the string based list better despite the greater overhead? Do you think the lag would even be noticable for a relatively large world doing string lookups for flags? Or is it worth just running with bitvectors and having an extended system from the start?
My question is thus: which is better? Is the flexibility of the string based list better despite the greater overhead? Do you think the lag would even be noticable for a relatively large world doing string lookups for flags? Or is it worth just running with bitvectors and having an extended system from the start?