Vincent Torri | 1 May 2008 09:18
Picon

Re: [E-devel] More aggressive packing of Evas_Object


> As you can see from CVS log, I did some repacking of Evas_Object and
> managed to save more than 80 bytes, almost 1/3 of it is gone.
>
> While some aggressive packing went in, like "layer" number being a
> short now, I'm a bit unsure if applying the attached patch is a good
> thing. It will save 4 bytes from cur,prev, so it's 8 bytes in the end,
> but the solution is a bit ugly, as the members
> cache.clip.{visible,dirty} now are cache_clip_{visible,dirty} so it
> can be packed with the other bitfields. On one hand it saves memory,
> on the other it's ugly as hell :-P
>
> Apply or not? that's the question...
>
> PS: please test Evas on as many
> machines/architectures/compilers/operating systems as possible to see
> nothing is broken by these patches! It relies on compilers working
> fine with bitfields.

I'll try on windows with mingw. Indeed, i've forgotten to add 
-mms-bitfields in the compilation flags in the efl, which is needed if 
other programs use evas and are compiled with ms vc++ if i'm not mistaken. 
See:

http://gcc.gnu.org/ml/gcc-patches/2002-04/msg00253.html

There is a description of that flag

Vincent

(Continue reading)

Gustavo Sverzut Barbieri | 1 May 2008 17:07

Re: [E-devel] More aggressive packing of Evas_Object

On Thu, May 1, 2008 at 4:18 AM, Vincent Torri <vtorri <at> univ-evry.fr> wrote:
>
>  > As you can see from CVS log, I did some repacking of Evas_Object and
>  > managed to save more than 80 bytes, almost 1/3 of it is gone.
>  >
>  > While some aggressive packing went in, like "layer" number being a
>  > short now, I'm a bit unsure if applying the attached patch is a good
>  > thing. It will save 4 bytes from cur,prev, so it's 8 bytes in the end,
>  > but the solution is a bit ugly, as the members
>  > cache.clip.{visible,dirty} now are cache_clip_{visible,dirty} so it
>  > can be packed with the other bitfields. On one hand it saves memory,
>  > on the other it's ugly as hell :-P
>  >
>  > Apply or not? that's the question...
>  >
>  > PS: please test Evas on as many
>  > machines/architectures/compilers/operating systems as possible to see
>  > nothing is broken by these patches! It relies on compilers working
>  > fine with bitfields.
>
>  I'll try on windows with mingw. Indeed, i've forgotten to add
>  -mms-bitfields in the compilation flags in the efl, which is needed if
>  other programs use evas and are compiled with ms vc++ if i'm not mistaken.
>  See:
>
>  http://gcc.gnu.org/ml/gcc-patches/2002-04/msg00253.html
>
>  There is a description of that flag

hum, I doubt that will matter because all the structs are internal to
(Continue reading)


Gmane