Skip to content

Commit 1f5801a

Browse files
committed
use prefetchr
1 parent 90109c4 commit 1f5801a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swiss_dict.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ function ht_keyindex(h::SwissDict, key, i0, tag)
131131
keys = h.keys
132132
sz = length(slots)
133133
i = i0 & (sz-1)
134-
#_prefetchr(pointer(h.keys, i*16+1))
135-
# _prefetchr(pointer(h.vals, i*16+1))
134+
_prefetchr(pointer(h.keys, i*16+1))
135+
_prefetchr(pointer(h.vals, i*16+1))
136136
#Todo/discuss: _prefetchr(pointer(h.keys, i*16+9))?
137137
@inbounds while true
138138
msk = slots[i+1]

0 commit comments

Comments
 (0)