On Thu, Apr 15, 2004 at 12:30:50AM +0200, Gabor Fekete wrote: > On Wednesday 14 April 2004 20.42, Marc Huffnagle wrote: > > > I disagree, the order of the fields in a struct should have absolutely > > no effect on performance. Accessing one location in memory should be > > just as fast as accessing another, since it's Random Access Memory. If > > the fields were accessed sequentially then you would be right, but they > > aren't. > > But it can help cache hit rate, thus it has effect on performance. > Although I doubt it was designed that way. Linux is designed to optimize that much the ip stack. > Bye > Gabor Fekete > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/