• Charles Harrison's avatar
    [safe-browsing] Make the perftest less allocate-y · d4032b17
    Charles Harrison authored
    This CL makes the V4 Store perftest a bit faster by:
    1. Using a smaller # of hashes in debug builds
    2. Using one big string instead of a vector of full hashes, to avoid
       allocating and de-allocating many small strings. To get this working,
       needed to slightly modify V4Store to allow querying by StringPiece.
    
    (2) improved local performance on my release build by 25-30%
    
    Bug: 822624
    Change-Id: I646af2b0ccfb6447ccbb94ce68b661bd235587d1
    Reviewed-on: https://chromium-review.googlesource.com/965931
    Commit-Queue: Charlie Harrison <csharrison@chromium.org>
    Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543796}
    d4032b17
v4_store.h 19.4 KB