This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: modeling latency (fwd)


Hi -

bje wrote:

: [...]
: I agree that packing the bus::status struct should be considered
: important for performance, given that it is likely passed by value.

Right.

: As you suggest, there is a g++ extension to help with this: packed
: enums, but was never implemented.  [...]

There may be other relevant extensions: bitfields?

In any case, until g++ is able to help us pack this structure, you
could arrange the code to do all this, by storing the status enum
explicitly within a host_int_2 (or even host_int_1) field, accompanied
by the appropriate casts.


- FChE

PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]