-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(utilities): optimize case-sensitive tag replace with hash map
The lookup cost of a hash map is O(1) instead of `indexOf` which is O(N). Generate a hash map of the case-sensitive tag names, rename `fixTagCase` to `formatTagName`, and use the hash map.
- Loading branch information
1 parent
0862f39
commit 6aa06ee
Showing
1 changed file
with
30 additions
and
17 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