[mythtv-firehose] mythtv branch devel/logging updated by danielk. v0.27-pre2-771-g7ed59de

Git Repo Owner noreply at mythtv.org
Fri Apr 5 01:55:20 UTC 2013


The branch, devel/logging has been updated on the
mythtv repository by gitolite user danielk.
       via  7ed59deb334c3ed5fdb118ec6d1f416611943b2b (commit)
      from  07205e0c1a789e746a46b11867c33014c177d807 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7ed59deb334c3ed5fdb118ec6d1f416611943b2b
Author:    Daniel Kristjansson <danielk at cuymedia.net> at Thu, 4 Apr 2013 21:51:34 -0400
Committer: Daniel Kristjansson <danielk at cuymedia.net> at Thu, 4 Apr 2013 21:51:34 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=7ed59deb334c3ed5fdb118ec6d1f416611943b2b

Get rid of malloc in LogDeque::HashString().
I was using qHash() to hash the strings just because it let me implement
LogDeque::HashString() quickly. But qHash() requires a QByteArray which
requires a malloc and mallocs are slow..  This uses a good public domain
hash (Dan Bernstein's djb2 with xor instead of add) to hash the string
and avoids doing any malloc unless this is the first time we're seeing
the string.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythbase/logging/logdeque.cpp |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

-- 



More information about the mythtv-firehose mailing list