On 2/6/24 19:59, Pierrick Bouvier wrote:
Why a hash table? All you want is to be able to iterate through all, and
add/remove
easily. Seems like QLIST from <qemu/queue.h> would be better, and the
QLIST_ENTRY member
would make struct qemu_plugin_scoreboard useful.
Thought that having O(1) removal was a nice property, compared to a linked list. I can
switch to a QLIST if you still think it's better.
QLIST is double-linked, so it's still O(1).
What do you mean by "make struct qemu_plugin_scoreboard useful"?
As opposed to simply a typedef of GArray.
r~