refactor(browser_manager): 实现页面池机制以提升性能 refactor(image_manager): 添加模板缓存并集成页面池 refactor(bili_parser): 迁移到异步HTTP请求并实现会话复用 docs: 新增性能优化、架构设计和最佳实践文档 chore: 更新requirements.txt添加新依赖
16 lines
516 B
Python
16 lines
516 B
Python
import sys
|
|
import sysconfig
|
|
|
|
print(f"Python Version: {sys.version}")
|
|
|
|
# 检查 GIL 状态
|
|
try:
|
|
# Python 3.13+ free-threading build 才有这个属性
|
|
is_gil_enabled = sys._is_gil_enabled()
|
|
print(f"GIL Enabled: {is_gil_enabled}")
|
|
except AttributeError:
|
|
print("GIL Status: Unknown (sys._is_gil_enabled not found, likely GIL-enabled build)")
|
|
|
|
# 检查 JIT 状态
|
|
# 目前没有直接的 API 检查 JIT 是否开启,通常看性能或启动日志
|
|
print("JIT Support: Experimental (Enable with -X jit)") |