modeling latency (fwd)

Frank Ch. Eigler fche@redhat.com
Sun Jun 24 17:46:00 GMT 2001


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
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7NonFVZbdDOm/ZT0RAtT2AJ4xnUQoR+x/jinFDkx0QnT2nEYY4ACdGiXp
kEt4LJvjicTSxyeXpid7cfU=
=+381
-----END PGP SIGNATURE-----


More information about the Sid mailing list