| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Merging this PR will improve performance by ×2.1⚡ 4 improved benchmarks Performance Changes
Comparing serialize-pydantic (880ad19) with master (1e78a36) |
Sorry, something went wrong.
Sorry, something went wrong.
|
A bit stupid question maybe, but If I was already returning pydantic model and response model was that model, I will still get performance boost? |
Sorry, something went wrong.
|
Yes, you will 🚀 |
Sorry, something went wrong.
|
@tiangolo currently we are using response_model will it also performance improvement ? @router.get("/sample", response_model=Sample)
def sample_endpoint(
*,
db: Session = Depends(deps.get_db),
store_id: int,
user_id: Optional[int] = None,
):
|
Sorry, something went wrong.
|
Same but for parsing HTTP body: #13951 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
✨ Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model