mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: 1-pass domain parse
This commit is contained in:
@@ -19,7 +19,7 @@ import { getGorhillPublicSuffixPromise } from './get-gorhill-publicsuffix';
|
||||
mixedInputs: false
|
||||
};
|
||||
|
||||
(['getDomain', 'getPublicSuffix', 'getSubdomain'] as const).forEach(methodName => {
|
||||
(['getDomain', 'getPublicSuffix', 'getSubdomain', 'parse'] as const).forEach(methodName => {
|
||||
group(methodName, () => {
|
||||
if (methodName in gorhill) {
|
||||
bench('gorhill', () => {
|
||||
|
||||
Reference in New Issue
Block a user