From c5c85cfee669a296fac946fca2f8e3a24bf25349 Mon Sep 17 00:00:00 2001 From: George Bocharov Date: Tue, 13 Feb 2024 07:50:01 +0000 Subject: [PATCH] updated readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 97d5b00..04d2093 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@

- [Introduction](#introduction) + - [Performance](#performance) - [Installation](#installation) - [Usage](#usage) - [General](#general) @@ -39,6 +40,14 @@ then `drf-pydantic` is for you 😍. > `drf_pydantic` supports `pydantic` v2. Due to breaking API changes in `pydantic` > v2 support for `pydantic` v1 is available only in `drf_pydantic` 1.\*.\*. +## Performance + +Translation between `pydantic` models and `DRF` serializers is done during class +creation (e.g., when you first import the model). This means that there will be +zero impact on the performance of your application +(server instance or serverless session) +when using `drf_pydantic` while your application is running. + # Installation ```shell