From 652ceda448cb9ed7059d18e31d7c5eb1aaf2390f Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Thu, 15 Aug 2024 12:04:52 +0800 Subject: [PATCH] =?UTF-8?q?Update=20iptv=E6=B5=81=E7=95=85=E5=BA=A6?= =?UTF-8?q?=E6=A3=80=E6=B5=8B.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/iptv流畅度检测.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/iptv流畅度检测.py b/py/iptv流畅度检测.py index 4b0b6ed..0ecbe3b 100644 --- a/py/iptv流畅度检测.py +++ b/py/iptv流畅度检测.py @@ -846,9 +846,9 @@ def main(source_file_path, output_file_path): # 使用with语句打开输出文件准备写入 with open(output_file_path, 'w', encoding='utf-8') as output_file: # 创建线程池,最大工作线程数为64 - with ThreadPoolExecutor(max_workers=128) as executor: + with ThreadPoolExecutor(max_workers=64) as executor: # 为线程池中的每个线程提交worker函数 - for _ in range(128): + for _ in range(64): executor.submit(worker, task_queue, output_file, order_list, valid_count, invalid_count, len(lines)) # 将所有行放入任务队列 for line in lines: