[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: Gecko/20060909 Firefox/


                 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



(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


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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