iris
iris copied to clipboard
[FEATURE REQUEST]If there are more registered routes, it will be slower。
Is your feature request related to a problem? Please describe.
code:https://github.com/kataras/iris/blob/master/core/router/api_builder.go#L89
Why do you not use map when you register a route to check whether the route exists?If there are more registered routes, it will be slower。
Hello @fdsnsf the build-time is slower, not the serve-time, please note that in your title. We use slice instead of map because of Route.DeepEqual
but this may change in the future depending on our needs.