[issue2551212] Speed up wsgi_handler.py
Marcus Priesch <[email protected]> Mon, 27 Jun 2022 08:31:58 +0000
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
New submission from Marcus Priesch:
Hi There,
on our last set of patches, the speed up patch was not applied to wsgi_handler.py
upon trying what is currently in the repo i found that my rest-powered frontend again is rather slow.
timing the requests gives
230-240ms per request
with the current code, whereas with the attached patch applied i come down to
70-80ms per request !
i remember we discussed that the code currently in use reloads the tracker/templates on every request, which was decided to be a good thing.
discussing with ralf we came to the conclusion, we could do this optionally via a config option.
my personal opinion rather would be to apply the patch and to have the "template reload" feature only when using roundup-server and not in the wsgi backend - as this (in my opinion) mainly should be used in production environments where speed matters.
however speaking about automatic code reload, django also does this (and i think web.py also, which has a smaller code base), maybe we should take a look at how they are doing things - with the current behaviour only the trackers auditors and templates get reloaded but i dont think changes in roundup core get reloaded also ... but i could be wrong here ...
regards,
marcus.
----------
components: Web interface
files: wsgi_handler_speedup.patch
keywords: patch
messages: 7586
nosy: marcus.priesch, rouilj, schlatterbeck
severity: urgent
status: new
title: Speed up wsgi_handler.py
type: rfe
versions: devel
_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551212>
_________________________________________________