bf0aac2339
* Prevent multiple parseURI calls ## Ticket 129 ## Issue Code was shortened to use `isURIValid` during the consolidation. `isURIValid` calls `normalizeURI`, which calls another `parseURI`. `parseURI` is pretty expensive. ## Approach - Add optional parameter to `isURIValid` to skip the normalization. - Set those that were converted during the consolidation to skip the normalization. Also covered a few other instances where it is obvious to me that normalization is not required. - For the rest, I can't tell for sure if it's safe to remove the normalization, so the default `normalize=true` will leave things as is. The whole `parseURI` probably needs a refactoring, or a few lighter version for specific needs. * Simplify isURIEqual ## Issue `parseURI` is too expensive to be used in a loop, plus `normalizeURI` itself is calling `parseURI`. ## Approach Not sure if it covers all cases, but just try convert colons to hashes before comparing. |
||
---|---|---|
.. | ||
actions | ||
middleware | ||
reducers | ||
selectors |