[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #5506] api_lib.c: netbuf_copy_partial() use memcpy i
From: |
goldsimon |
Subject: |
[lwip-devel] [patch #5506] api_lib.c: netbuf_copy_partial() use memcpy instead of byte copy |
Date: |
Tue, 31 Oct 2006 07:56:36 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [patch #5506] api_lib.c: netbuf_copy_partial() use memcpy instead of byte copy,
goldsimon <=