Wireshark mailing list archives

Re: [Wireshark-commits] rev 40242: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-http.c


From: Bill Meier <wmeier () newsguy com>
Date: Sun, 18 Dec 2011 13:47:38 -0500

On 12/18/2011 1:31 PM, wmeier () wireshark org wrote:
Create "Dehunked Entity Body" with O(N) rather than O(N^2) efffort.
  [Actually 1 g_malloc() + N tvb_memcpy() instead of
  ~ N g_malloc()/g_free() + N*(N+1)/2 tvb_memcpy() where N = number of chunks].

Correction: the above should have been:

Create "Dehunked Entity Body" with O(N) rather than O(N^2) efffort.

 [Actually 1 g_malloc() +
   N tvb_memcpy() copying N*chunksize bytes

 instead of

 ~ N g_malloc()/g_free() +
   2*N tvb_memcpy() copying (N*(N+1)/2)*chunksize bytes

 where N = number of chunks].

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: