Skip to content

Commit 54acd34

Browse files
committed
refactor: fix slowdown in get_op_name due to no specialization
1 parent 9812009 commit 54acd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Strings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121

2222
const OP_NAME_CACHE = (; x=Dict{UInt64,String}(), lock=Threads.SpinLock())
2323

24-
function get_op_name(op)
24+
function get_op_name(op::F) where {F}
2525
h = hash(op)
2626
lock(OP_NAME_CACHE.lock)
2727
try

0 commit comments

Comments
 (0)