quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.23k stars 1.01k forks source link

Consider using parallel pylint #3594

Open dabacon opened 3 years ago

dabacon commented 3 years ago

Pylint is by far one of the slowest parts of the CI suite. It has a parallel flag, -j . On my local box, doing j=4 sped up pylint from 2.5 minutes to 1 minute.

balopat commented 3 years ago

We can try - I have had moderate success on the Github Actions machines with parallelization - namely the sphinx build actually just hung when I set -j auto, but also -j 2 didn't help either. Not sure why. Maybe there is some kind of cpu throttling / oversubscription / virtualization / containerization overhead :) or maybe it's just specific to sphinx and not pylint. Worth a try!