What's the most time-consuming parts in the rendering pipeline? and how to improve them?

what’s the most time-consuming parts in the rendering pipeline? and how to improve them?

eg.
Creating pipeline states is relatively time-consuming which is why you do it up-front, but switching pipeline states during frames is fast and efficient.