Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Issue 10052036: hash code cleanup - copy seed to local and use array indexing. 1.483 ms for 720p vs 2.225 ms for o… (Closed)

Created:
8 years, 8 months ago by fbarchard1
Modified:
8 years, 8 months ago
Reviewers:
jzern, fbarchard
CC:
chromium-reviews
Visibility:
Public.

Description

hash code cleanup - copy seed to local and use array indexing. 1.483 ms for 720p vs 2.225 ms for old code. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131901

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M media/base/djb2.cc View 1 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fbarchard
copy C version of djb2 from libyuv
8 years, 8 months ago (2012-04-12 01:36:20 UTC) #1
jzern
lgtm
8 years, 8 months ago (2012-04-12 02:06:11 UTC) #2
fbarchard
On 2012/04/12 01:36:20, fbarchard wrote: > copy C version of djb2 from libyuv Original code ...
8 years, 8 months ago (2012-04-12 02:07:05 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 8 months ago (2012-04-12 02:07:24 UTC) #4
Ami GONE FROM CHROMIUM
OOC what is this used for that needs speed?
8 years, 8 months ago (2012-04-12 02:25:52 UTC) #5
fbarchard
8 years, 8 months ago (2012-04-12 04:06:05 UTC) #6
On 2012/04/12 02:25:52, Ami Fischman wrote:
> OOC what is this used for that needs speed?

On 2012/04/12 02:25:52, Ami Fischman wrote:
> OOC what is this used for that needs speed?

When testing using media_bench the hash is a bottleneck.
md5 is quite slow, adding hours to a test - slower than writing 2 files and
comparing them.  I've got a CL to improve that a bit
djb2 is fast but still about 10% of the test time.
The updated code is simpler and faster than the original.

A still faster version is in libyuv using sse4 but I didn't want to add the
dependency or large amount of pasted code.
BenchmakDjb2_C (1502 ms)
BenchmakDjb2_OPT (349 ms)

Powered by Google App Engine
This is Rietveld 408576698