OpenCV 4.4.0 is slower than OpenCV 3.4.1

I made c++ algorithm for making panorama images with OpenCV.
It takes about five times more time to run the algorithm at OpenCV 4.4.0 than when I ran the algorithm at OpenCV 3.4.1.
I built OpenCV with CMake 3.14 + Visual Studio 2019. Is there anything I can refer to for faster operation?