Opened 19 years ago
Closed 19 years ago
Last modified 19 years ago
#4622 closed patch (wontfix)
Zero Copy mpegstreamhandler and dtvrecorders
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The attached patch reduces the amount of in-memory copying of TSPackets that occurs by passing pointers instead of copying 188+ bytes of data on the stack between function calls.
Attachments (1)
Change History (4)
by , 19 years ago
| Attachment: | zero_copy_mpeg_streams.diff added |
|---|
comment:1 by , 19 years ago
| Milestone: | unknown → 0.22 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
| Version: | unknown → head |
Since this may add instability I'm pushing it off to just after the 0.21 branch is created..
comment:2 by , 19 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | assigned → closed |
Bradley, this patch doesn't really do anything. In C++ a reference "&" is basically just a pointer "*" with some some additional safety checks. It won't actually trigger any memory copies.
comment:3 by , 19 years ago
Ahh :-)
Thanks - I dont know C++ that well (as you may have been able to tell :-p)

Reduces copying of tspackets on the stack.