转换GWLIST2PAC到PAC
gfwlist2pac的Python项目详细描述
从gfwlist生成快速pac文件。示例:fast mode /precise mode。
快速模式:使用O(1)域查找
精确模式:使用Adblock Plus引擎
用法
pip install gfwlist2pac usage: gfwlist2pac [-h] [-i GFWLIST] -f PAC -p PROXY [--user-rule USER_RULE] [--precise] optional arguments: -h, --help show this help message and exit -i GFWLIST, --input GFWLIST path to gfwlist -f PAC, --file PAC path to output pac -p PROXY, --proxy PROXY the proxy parameter in the pac file, for example, "SOCKS5 127.0.0.1:1080;" --user-rule USER_RULE user rule file, which will be appended to gfwlist --precise use adblock plus algorithm instead of O(1) lookup
性能
由gfwlist2pac生成的pac比switchysharp快1900x。
Testing fast mode pac generated by gfwlist2pac avg: 0.50us Testing precise mode pac generated by gfwlist2pac avg: 1.66us Testing pac generated by switchysharp avg: 952.99us