DescriptionSpeedup GetRegistryLengthImpl() by seeding the DAFSA in reverse.
Add an option to make_dafsa.py to reverse the input words during
encoding.
Adapt the implementation of GetRegistryLengthImpl to the
reverse-seeded DAFSA. The new implementation is more efficient,
because it needs to query the DAFSA only once.
Improve the documentation of GetRegistryLengthImpl, with links
to relevent steps of the pseudocode algorithm specified at
publicsuffix.org. Document the two places where we depart
from that spec (one is INCLUDE_UNKNOWN_DOMAINS being optional,
the other is the platform.sh problem).
Add a TODO regarding empty-label matches.
Dafsa size after this change: 40861 bytes
RegistryControlledDomainTest.GetDomainAndRegistry 55ms
RegistryControlledDomainTest.SameDomainOrHost_Different 95ms
RegistryControlledDomainTest.SameDomainOrHost_Same 100ms
BUG=678334
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 6
Patch Set 3 : python cleanup #Patch Set 4 : More comment changes. #Patch Set 5 : Language. #
Total comments: 6
Depends on Patchset: Messages
Total messages: 15 (10 generated)
|