[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v2 03/22] util/rbtree: add rbtree from linux
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH RFC v2 03/22] util/rbtree: add rbtree from linux kernel |
Date: |
Thu, 1 Sep 2016 16:37:57 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 29.08.2016 um 19:10 hat Pavel Butsykin geschrieben:
> Why don't we use rbtree from glib? We need pointer to the parent node.
> For optimal implementation storing of cached chunks in the rbtree
> need to get next and previous nodes and content of parent node
> is very useful for effective implementation of these functions. In this
> implementation of rbtree (unlike rbtree of glib) the node contains a pointer
> to parent node. Moreover, this rbtree allows more flexibility to
> work with an algorithm because to use rbtrees you'll have to implement
> your own insert and search cores. This will avoid us to use callbacks and
> to drop drammatically performances.
>
> Signed-off-by: Pavel Butsykin <address@hidden>
General note (only having looked at the diffstat): We need to make sure
that new files that this series adds are covered by MAINTAINERS entries.
Kevin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH RFC v2 03/22] util/rbtree: add rbtree from linux kernel,
Kevin Wolf <=