Fedora 22 (released 2015) switched default package managers from yum to dnf. dnf is faster, and better at resolving complex dependency chains. Additionally, its better at rollbacks on the rare occasions these are required. apt-get might still be a hair faster, but they're pretty comparable at this point.
C++ isn't the reason it's blazing fast, moreso that they took the rewrite opportunity to improve the parallelism and be more clever about which metadata actually needs to be downloaded instead of downloading all of it, every time.
Jokes apart, I guess that not all is procedsing yhere is also IO and other stuff going on here so I would not expect C++ to be critical here for most of the workload.