Skip to content

Commit

Permalink
Use CacheDictType
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt committed Apr 19, 2024
1 parent f3683d0 commit c7f383a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flint/fq_default_extended.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7f383a

Please sign in to comment.