Re: [Spice-devel] [PATCH 7/8] Store surfaces_used in a bit-array

2010-08-23 Thread Alexander Larsson
On Sun, 2010-08-22 at 15:56 +0300, Yonit Halperin wrote: > On 08/20/2010 09:54 PM, al...@redhat.com wrote: > > From: Alexander Larsson > > > > This is smaller than a byte array, and allows us to skip full > > blocks of 32 ids in one check. > > --- > > Hi, > why not use a linked list, for free surf

Re: [Spice-devel] [PATCH 7/8] Store surfaces_used in a bit-array

2010-08-22 Thread Yonit Halperin
On 08/22/2010 03:56 PM, Yonit Halperin wrote: On 08/20/2010 09:54 PM, al...@redhat.com wrote: From: Alexander Larsson This is smaller than a byte array, and allows us to skip full blocks of 32 ids in one check. --- Hi, why not use a linked list, for free surfaces, in a static UINT32[n_surface

Re: [Spice-devel] [PATCH 7/8] Store surfaces_used in a bit-array

2010-08-22 Thread Yonit Halperin
On 08/20/2010 09:54 PM, al...@redhat.com wrote: From: Alexander Larsson This is smaller than a byte array, and allows us to skip full blocks of 32 ids in one check. --- Hi, why not use a linked list, for free surfaces, in a static UINT32[n_surfaces] array? Any reason besides space, which is 4

[Spice-devel] [PATCH 7/8] Store surfaces_used in a bit-array

2010-08-20 Thread alexl
From: Alexander Larsson This is smaller than a byte array, and allows us to skip full blocks of 32 ids in one check. --- display/qxldd.h |2 +- display/res.c |2 +- display/surface.h | 55 +++- 3 files changed, 47 insertions(+), 12