Re: struct optimizations

2010-01-26 Thread Andy Wingo
Hi Ludo, On Tue 26 Jan 2010 00:13, l...@gnu.org (Ludovic Courtès) writes: >> It seems that currently SIMPLE is for all pr *or* all pw slots. > > Fixed: Cool :) >> Then perhaps we can change SIMPLE_RW to be MUTABLE or something, to >> indicate that all slots of this object are mutable. > > I end

Re: struct optimizations

2010-01-25 Thread Ludovic Courtès
Hello, Andy Wingo writes: > Some comments: > > -#define SCM_VTABLE_FLAG_RESERVED_0 (1L << 5) > -#define SCM_VTABLE_FLAG_RESERVED_1 (1L << 6) > +#define SCM_VTABLE_FLAG_SIMPLE (1L << 5) /* instances of this vtable > have only "pr" fields */ > +#define SCM_VTABLE_FLAG_SIMPLE_RW (1

Re: struct optimizations

2010-01-25 Thread Ludovic Courtès
Hi Andy, Andy Wingo writes: > Some comments: > > -#define SCM_VTABLE_FLAG_RESERVED_0 (1L << 5) > -#define SCM_VTABLE_FLAG_RESERVED_1 (1L << 6) > +#define SCM_VTABLE_FLAG_SIMPLE (1L << 5) /* instances of this vtable > have only "pr" fields */ > +#define SCM_VTABLE_FLAG_SIMPLE_RW