Order routes so most frequent requests are first

Since authentication is going to be the most common operation in a real
environment, I moved this first.

The problem is that routes uses one, yes one, huge regex for
dispatching. This is not performant for the unfortunate routes that
appear at the end.

Change-Id: I06bc2fa6a29934e28ab83d92bc9bf9b3665ba34c
This commit is contained in:
David Stanek 2015-05-13 15:25:33 +00:00
parent fe3da741c7
commit fe858bc96b

View File

@ -104,8 +104,11 @@ def v3_app_factory(global_conf, **local_conf):
sub_routers = []
_routers = []
router_modules = [assignment,
auth,
# NOTE(dstanek): Routers should be ordered by their frequency of use in
# a live system. This is due to the routes implementation. The most
# frequently used routers should appear first.
router_modules = [auth,
assignment,
catalog,
credential,
identity,