Overview
Discover performance optimization techniques for Pydantic, the leading data validation library for Python, in this 22-minute PyCon US talk. Learn about the significant speed improvements in Pydantic V2 due to its Rust-based core validation logic. Explore a range of optimizations, from simple one-line fixes to larger-scale design modifications, that can enhance your Python applications' performance. Gain insights into opinionated JSON loading syntax, TypeAdapter usage tips, and the powerful concept of tagged (discriminated) unions for efficient union type validation and error handling. Walk away with practical examples to apply to your own code, a deeper understanding of Pydantic's performance capabilities, and a preview of upcoming performance-enhancing features in the library.
Syllabus
Talks - Sydney Runkle: Pydantic Power-up: Performance Tips for Lightning-Fast Python Applications
Taught by
PyCon US