I am working with Attribute Routing in asp.net mvc 4 web application. It is a single application that supports 15 different cultures and 20+ languages. The result of this, my routing table is extremely large, over 3000 routes. The main reason for so many routes is because the routes are localized per language. The follow on effect of this is that it results in a slow route lookup and in turn poor performance of the site.
I am looking at ways to improve performance. So looking for tips. Unfortunately I can't alter my routing structure due to business restrictions. The main reason I have so many routes is due to translations - there is an entry in the routing table for each language. Any way to avoid this?
Also, I note in the routing table, entries for POST methods - is this required? Can it be avoided to have entries in routing table for POST's?
Is there any form of caching that can be included to avoid routing table lookup and instead read from memory?
Any performance optimization tips of Attribute Routing or with routing in general would be excellent.