qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 05/17] plugins: scoreboard API


From: Richard Henderson
Subject: Re: [PATCH v3 05/17] plugins: scoreboard API
Date: Sat, 10 Feb 2024 14:41:44 -1000
User-agent: Mozilla Thunderbird

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~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]