[mythtv-commits] Ticket #1433: pespacket.cpp Allocator optimization

MythTV mythtv at cvs.mythtv.org
Thu Mar 2 06:58:18 UTC 2006

#1433: pespacket.cpp Allocator optimization
 Reporter:  Janne <janne-mythtv at grunau.be>  |       Owner:  danielk
     Type:  enhancement                     |      Status:  new    
 Priority:  minor                           |   Milestone:         
Component:  dvb                             |     Version:         
 Severity:  medium                          |  
 With [9223] 2/3 of the time of !ParseTable was spent in
 get_{188|4096}_block, since ~80% of the calls actually do memory

 The attached patch halves the size of the blocks, unrolls a expensive
 vector method from the inner loop and frees the allocators only if more
 than one block was allocated.

 The last point is probably the simplest compromise between saving memory
 allocations and smallest memory footprint.

 With the patch get_{188|4096}_block drops to 3%, and the ratio of calls
 with memory allocation drops  under 1%.

Ticket URL: <http://svn.mythtv.org/trac/ticket/1433>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list