lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)


From: Bill Auerbach
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Fri, 29 Jan 2010 16:14:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

Follow-up Comment #11, bug #27352 (project lwip):

I get it. So I assume it all works for me because I do have ETH_PAD defined
to 2.  ip_addr not being a packed struct got me the largest performance
improvement for all of the performance-improving changes that I made.

I guess the summary is, there are many processors/platforms where alignment
isn't a concern or where ETH_PAD is 2.  These systems probably incur a
significant performance hit for ip_addr packing. I'd sure like to see others
in this camp do a quick benchmark without ip_addr packing and see what they
get.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27352>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]