QGIS提升速度
This commit is contained in:
@@ -138,6 +138,12 @@ def main():
|
||||
# 初始化 QgsApplication(只做一次)
|
||||
qgs_app = _init_qgis()
|
||||
|
||||
# 从磁盘恢复已缓存的模板(跨进程加速)
|
||||
from app.services.qgis.map_service import template_cache
|
||||
cached_count = template_cache.load_persistent_cache()
|
||||
if cached_count > 0:
|
||||
print(f"[qgis_runner] 磁盘缓存命中: {cached_count} 个模板", file=sys.stderr)
|
||||
|
||||
try:
|
||||
from app.services.qgis.map_service import MapService
|
||||
|
||||
|
||||
Reference in New Issue
Block a user