[mythtv-commits] mythtv/master commit: 861f82609 by Daniel Kristjansson (daniel-kristjansson)
noreply at mythtv.org
Wed Aug 17 13:46:17 UTC 2011
Author: Daniel Kristjansson <danielk at cuymedia.net>
Change Date: 2011-08-17T06:45:28-07:00
Push Date: 2011/08/17 06:46:09 -0700
New Revision: 861f826090ab7a077fa56897d52357f1d34174ff
Makes LoggingItem_t allocation and freeing a bit more efficient.
Replaces the locked reference counting with QAtomicInt reference counting.
Rearranges order of items in structure so as to minimize memory usage.
Places message buffer in LoggingItem_t itself so we only need one malloc and not two in LogPrintLine
The malloc function is one of the slowest in libc, so we want to minimize our calls to it.
Constructs all LoggingItem_t instances in createItem() function; this not only eliminates duplicate code but will simplify creating a custom allocator in the future.
More information about the mythtv-commits