Skip to content

Commit 18d1791

Browse files
feat: update WeakCacheSets, use isequal_with_metadata, hash2
1 parent 04f9bb1 commit 18d1791

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/WeakCacheSets.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copied from WeakCacheSets.jl, modified to use hash2 and isequal_with_metadata instead of
2+
# the standard `hash` and `isequal`.
3+
module WeakCacheSets
4+
5+
using SymbolicUtils: hash2, isequal_with_metadata
6+
17
# These can be changed, to trade off better performance for space
28
const maxallowedprobe = 16
39
const maxprobeshift = 6
@@ -229,3 +235,7 @@ function Base.show(io::IO, t::WeakCacheSet{K}) where K
229235
end
230236
print(io, ')')
231237
end
238+
239+
export WeakCacheSet, getkey!
240+
241+
end # module WeakCacheSets

0 commit comments

Comments
 (0)