From 265a28e151c3e7301b7221d44b1d79b3ba52cd4c Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sun, 2 Jul 2023 16:32:40 +0530 Subject: [PATCH] perf: preload pydantic --- frappe/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/app.py b/frappe/app.py index 1cbdca1361..ee4ba7d170 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -33,6 +33,8 @@ _sites_path = os.environ.get("SITES_PATH", ".") # If gc.freeze is done then importing modules before forking allows us to share the memory if frappe._tune_gc: + import pydantic + import frappe.boot import frappe.client import frappe.core.doctype.user.user