-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(UrlService): (
UrlRouter
) improve perf of registering Url Rules…
… and sorting Url Rules 1) The `UrlRouter.rule` function was re-sorting all the rules each time a new one was registered. Now, the rules are sorted only just before they are used (by either `.match()` or `.rules()`). 2) The UrlMatcher.compare function was slow because it re-computed static information each time it ran. Now, the static "segments" data is stored in `UrlMatcher._cache` Closes #27 Closes angular-ui/ui-router#3274
- Loading branch information
1 parent
fdb3ab9
commit 64fbfff
Showing
2 changed files
with
59 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters