...
Pegasus supports ccache to accelerate compilation. It significantly reduces the building time, by caching the intermediate results on your disk. We highly recommend this tool for Pegasus development.
sudo apt install ccache
ccache -M 5G # configure the cache size
...