On Tue, Feb 16, 2021 at 4:17 PM Steven Stallion via OpenOCD-devel < [email protected]> wrote:
> Out of curiosity, why even bother with a more advanced structure when a > list will suffice? I agree it feels gross to iterate to find a given > thread, however we're looking at a relatively low number of iterations. Is > it really worth introducing an additional dependency to avoid a loop? > A list is fine. But I don't want to have to implement that list. linux.c implements its own list. list.h implements a slightly different list, but doesn't implement look-up by a key. I could build something on top of that list, or write my own from scratch. That's just a big waste of effort though, given that there already are fast, well-tested implementations out there. If I'm grabbing a library from somewhere I'll get one that is efficient even with lots of data, because it'll save somebody someday, and is no extra work for me. Tim
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
