Update: I got to a point where the code runs quite faster, as below, but the integratedtest still fails and I am having some trouble seeing why

Update: I got to a point where the code runs quite faster, as below, but the integratedtest still fails and I am having some trouble seeing why



