perf: preload pydantic
This commit is contained in:
parent
af70328930
commit
265a28e151
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue