Hello,
I’m trying to make a library of user-constructed mutable structs which I can quickly search through, extract values from, and add new structs to. The most obvious design to me is to put each struct object into an array.
Is there an efficient way to search through a specific field of each object in the array? Alternatively I am wondering if it would be more sensible (and faster) to replace the array single struct where the fields are arrays of values from each struct? Or perhaps dictionaries would be helpful?
Thanks in advance.