Skip to content

Commit b014bff

Browse files
Abseil Teamcopybara-github
authored andcommitted
Remove first prefetch.
The rationale behind this being that it is close too close to the first access of the data pointed by the pointer and is of no significant improvement as seen in the benchmarks. PiperOrigin-RevId: 670574898 Change-Id: I43a495f23871a2870f4ffd9ab9232083d9668c79
1 parent e64dd62 commit b014bff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

absl/hash/internal/low_level_hash.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ static uint64_t Mix(uint64_t v0, uint64_t v1) {
3333

3434
uint64_t LowLevelHashLenGt16(const void* data, size_t len, uint64_t seed,
3535
const uint64_t salt[5]) {
36-
// Prefetch the cacheline that data resides in.
37-
PrefetchToLocalCache(data);
3836
const uint8_t* ptr = static_cast<const uint8_t*>(data);
3937
uint64_t starting_length = static_cast<uint64_t>(len);
4038
const uint8_t* last_16_ptr = ptr + starting_length - 16;

0 commit comments

Comments
 (0)