Previous slide Next slide Back to the index View Graphic Version

NEMO: Body sizes

                         'float'    'double'

typedef struct {
    real   bodymass;        4       8
    vector bodyphase[2];   24      48
                          -----   -----                         
                                            ---> 28      56
    real   bodyphi;         4       8
    vector bodyacc;        12      24
    real   bodyaux;         4       8
    int    bodykey;         4       4
                          -----   -----
                                            -->  52     100
    real   bodydens;        4       8            
    real   bodytemp;        4       8     
    real   bodysl;          4       8     
                          -----   -----
                                            -->  64     124
} body;

A default (100byte double precision) body needs 148 bpp.

128M -> 906,877  with old I/O in double, full body
      1,342,177  with new I/O
      2,581,110  with old I/O in float, only mass + phase
      4,793,490  with new I/O


Notes:

No notes for slide 9