🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Pre-compute headers and cookies for `@modify` (#1456)
This is a very important hot-path optimization: currently we build headers and cookies for each response:
django-modern-rest/dmr/validation/response.py
Lines 106 to 110 in 405ba9b
But, as you can see, there's nothing special about each of these calls, they are all the same for the same endpoint. That's why I propose to make this call only once when the endpoint is built in the import time. It would be faster.
#good_first_issue #help_wanted #performance #opensource_september #django_modern_rest
sent via relator
Post #344
147