
#376: Pydantic v2 - The Plan
Talk Python To Me
00:00
How Much Faster Is Pidantic?
Pidantic now has smart union, but, like, it's not perfect. We basically run through every member of the union in strict mode first, and try and validate in lax mode a. Thats a huge difference. How much faster does li, using it in python, get verses 17 times faster doing the validation? Yoaget your model back. So that that is going from apiton object pison dict to a e ibstantiated class instance. And soe, some much more confusing ones than that. Nice.
Transcript
Play full episode