Performance issue after upgrade from Julia 1.9.3 to 1.10.11

If you share your code… Please read: make it easier to help you

Key point:
Simplify your code to the smallest piece of code that still shows your problem. This step takes the most effort but is the most important for fixing your problem. Short, simple examples tend to get answers quickly.