Re: freeing CORBA arguments




> http://www.ois.com/technical/ORB_Performance_Enemies__Writing_Fast_IDL.pdf

Very interesting. One thing I doubt however: 

One of the slides says that

  typedef octet Data[3000000]; 
  interface Image { void to(in Data x); };

would transmit faster than

  struct Pixel { octet Red; octet Green; octet Blue; }; 
  typedef Pixel Data[1000000]; 
  interface Image { void to(in Data x); };

apart from the alignment issue (1 or perhaps 6 bytes per Pixel is wasted), I
don't think this is true. It might be true as far as the (de)marshalling code is
concerned, but the first solution must be (de)marshalled as well, so you
would probably incur the same cost, but this time hand-implemented. 

                                                                      Philip
-- 
Real programs don't eat cache (Malay)
-----------------------------------------------------------------------------
Philip Lijnzaad, lijnzaad@ebi.ac.uk \ European Bioinformatics Institute,rm A2-08
+44 (0)1223 49 4639                 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           \ Cambridgeshire CB10 1SD,  GREAT BRITAIN





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]