Updating submodules takes a long time

I am currently implementing CI/CD for our project, but our jobs take a long time to finish. It usually takes about 17 minutes until any custom script is executed.

I think it hangs at “Updating/initializing submodules recursively…”. Why is it taking that long?