From a77d4fec4ce7fc08262637d46a1d2650b272cc40 Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Fri, 19 Apr 2024 15:42:07 +0200 Subject: [PATCH] Use `CacheDictType` --- src/flint/fq_default_extended.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flint/fq_default_extended.jl b/src/flint/fq_default_extended.jl index cf8c21a4f..f091aa768 100644 --- a/src/flint/fq_default_extended.jl +++ b/src/flint/fq_default_extended.jl @@ -595,7 +595,7 @@ function _fq_field_from_nmod_poly_in_disguise(f::FqPolyRingElem, s::Symbol) return z end -const FqDefaultFiniteFieldIDFqDefaultPoly = Dict{Tuple{FqPolyRingElem, Symbol, Bool}, FqField}() +const FqDefaultFiniteFieldIDFqDefaultPoly = CacheDictType{Tuple{FqPolyRingElem, Symbol, Bool}, FqField}() function FqField(f::FqPolyRingElem, s::Symbol, cached::Bool = false, absolute::Bool = false) return get_cached!(FqDefaultFiniteFieldIDFqDefaultPoly, (f, s, absolute), cached) do