# Improve Serialization Performance in Django Rest Framework

DevFeed: [Improve Serialization Performance in Django Rest Framework](<https://devfeed.tech/articles/improve-serialization-performance-in-django-rest-framework-33902.md>)

Original publisher: [Read original article](<https://hakibenita.com/django-rest-framework-slow>)

Author: Haki Benita

Published: 2019-06-07T21:00:00Z

Content type: tutorial

Language: en

Sources: [Haki Benita](<https://devfeed.tech/sources/haki-benita.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [code](<https://devfeed.tech/tags/code.md>), [django](<https://devfeed.tech/tags/django.md>), [framework](<https://devfeed.tech/tags/framework.md>), [performance](<https://devfeed.tech/tags/performance.md>), [python](<https://devfeed.tech/tags/python.md>), [serialization](<https://devfeed.tech/tags/serialization.md>)

## AI overview

This article investigates poor API performance in Django Rest Framework and finds that serializer overhead, particularly validation-related processing, can dominate serialization time. Its benchmarks compare a plain Python function with DRF serializers and report substantially slower performance for DRF, with a read-only serializer improving the result.

## Source excerpt

When a developer chooses Python, Django, or Django Rest Framework, it's usually not because of its blazing fast performance. All of this doesn't mean performance is not important. As this story taught us, major performance boosts can be gained with just a little attention, and a few small changes.