Skip to content

Use a Hash to store decorated_routes

Heinrich Lee Yu requested to merge use-hash-to-store-decorated-routes into master

This makes route lookup much faster when there are many routes defined.

We currently have 1149 API routes defined in gitlab-org/gitlab so iterating over the whole list until we find a route can be slow.

With this new implementation, we only check defined routes that match the helper name.

Edited by Heinrich Lee Yu

Merge request reports