[Bug 664778] [souphttpsrc] chunk allocator: memory waste
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Dec 2 17:10:59 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=664778
GStreamer | gst-plugins-good | unspecified
--- Comment #9 from Davy <realbrightster at gmail.com> 2011-12-03 01:10:49 UTC ---
How about deploy FIONREAD ioctl?
Through this syscall, we can guess how many “unread” data is remained in the
TCP socket.
Please refer the kernel code at /net/ipv4/tcp.c tcp_ioctl()
As a result we can eliminate "zero read" case which cause malloc() / free()
overhead.
Regarding question #3,
What I really mean was
What will be happen if I delete chunk_allocator.
just worry about the unexpected malfunction in last revision.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list