URL:
<http://savannah.nongnu.org/patch/?5506>
Summary: api_lib.c: netbuf_copy_partial() use memcpy instead
of byte copy
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: goldsimon
Submitted on: Dienstag 31.10.2006 um 07:56
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
_______________________________________________________
Details:
(As you probably all know:) netbuf_copy_partial() copies TCP data from a pbuf
into the buffer provided by an application using the netbuf- or socket layer.
This function seems to be a bottle neck since it uses 2 loops and copies byte
per byte.
My implementation uses memcpy(), which is much faster than byte copy (if the
payload is aligned!!!)!
[If the payload or dataptr is not aligned, we gain nothing :( ]
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
Available only the item webpage |
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Dienstag 31.10.2006 um 07:56 Name: netbuf_copy_partial.patch Size:
2kB By: goldsimon
see patch description: patches api_lib.c
<http://savannah.nongnu.org/patch/download.php?file_id=11110>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5506>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
lwip-devel mailing list
[EMAIL PROTECTED]
http://lists.nongnu.org/mailman/listinfo/lwip-devel