perf: preload pydantic

This commit is contained in:
Ankush Menat 2023-07-02 16:32:40 +05:30
parent af70328930
commit 265a28e151

View file

@ -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