mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: minor optimization here and there
This commit is contained in:
@@ -58,7 +58,7 @@ export const createTrie = (from?: string[] | Set<string>) => {
|
||||
/**
|
||||
* Method used to retrieve every item in the trie with the given prefix.
|
||||
*/
|
||||
const find = (suffix: string, includeEqualWithSuffix = true): string[] => {
|
||||
const find = (suffix: string, /** @default true */ includeEqualWithSuffix = true): string[] => {
|
||||
let node: TrieNode = root;
|
||||
let token: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user