dimagi/commcare-hq — pull request #2672 by snopoke (2014-02-28 13:50:57+00:00)
Title: improve menu rendering performance

Improve rendering of CommCare HQ menu from `5.73126 s` to `2.10069 s` by doing a double pass to find the active item.

First pass is simple URL check. If no tab matches then proceed with slow pass.

Before and after profiling info here: https://gist.github.com/snopoke/8847121b9d9562eda024