As noted in #20, importing js2py will immediately consume upwards of 120MB of memory. This change defers such an import until necessary, i.e. when we have a PAC file to parse.
This only helps the scenario where PyPAC is imported but doesn't end up finding/using any PAC.
Coverage decreased (-0.008%) to 96.421% when pulling b450254d8f24954ba1f8b5980f9ce2ae68b98dae on defer-js2py into 19697f1b24a2e6399f0d3220be1b51ea99082b73 on master.
As noted in #20, importing js2py will immediately consume upwards of 120MB of memory. This change defers such an import until necessary, i.e. when we have a PAC file to parse.
This only helps the scenario where PyPAC is imported but doesn't end up finding/using any PAC.