You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using CategoricalArrays
A =rand(1:10, 1000)
Acat =categorical(A)
@allocationsgetindex.(Ref(Acat),eachindex(Acat))
On julia 1.11.2, this gives 1020 allocations (vs 17 on julia 1.10.7). The computation time is also ~ doubled. I profiled and it seems each call to CategoricalValue generates an allocation.
The text was updated successfully, but these errors were encountered:
MWE
On julia 1.11.2, this gives 1020 allocations (vs 17 on julia 1.10.7). The computation time is also ~ doubled. I profiled and it seems each call to
CategoricalValue
generates an allocation.The text was updated successfully, but these errors were encountered: