Created https://crbug.com/733857 for yiyun@ to work on the Service (the part that runs outside of other any app) while kmilka@ works on the WebView side (the part that runs inside other apps).
One thing I just noticed: VariationsSeedBridge#setVariationsFirstRunSeed() is in the critical path but calls SharedPreferences#edit() and #apply() which sometimes takes ~19 ms when testing locally. Could you take a look?
Attaching .trace file which you can read from Android Device Monitor.
Any reason not to use src/third_party/smhasher/src/MurmurHash3.cpp ?
Based upon the fact it's already part of chromium, my not-a-lawyer-opinion is that it's fine. Check with go/opensource if you're still worried.
I had to re-implement MurmurHash for performance (my use-case hashes 2-byte strings many more times than any other string length, so I optimized for that) and portability (smhasher assumes little-endian, and ignores alignment requirements).
Comment 1 by paulmiller@chromium.org
, Jun 13 2017Labels: -Restrict-View-Google -Type-Bug Type-Feature