-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
we should optimise rest endpoint dispatch #5118
Comments
Something like https://github.com/nitely/kua would probably work, though its py3 only. |
possibly, though I'm not sure how it would tie into twisted. I was mostly just imagining that it would be a good start to say: for the ClientRestResource which is mounted at |
we have hundreds of path_regexes (see #5118), so let's not convert the same bytes to str for each of them.
we have hundreds of path_regexes (see #5118), so let's not convert the same bytes to str for each of them.
I was a bit curious how this compares to current day:
I was pretty easily able to reduce this quite a bit by messing with the
(These were for the |
every incoming GET request gets compared against a list of 227 regexps, many of which are redundant since they duplicate each endpoint onto the various places the client API lives. This is surely an unnecessary overhead.
The text was updated successfully, but these errors were encountered: