DescriptionUse a more compact HSTS representation.
The current, preloaded HSTS table is nearly 80KB now. We match it linearly so
we trash the D1 cache with it for every lookup. Additionally, we have to do
multiple passes through it, removing a label from the target each time.
This changes the HSTS information to be a trie. The trie only consumes about
10KB and only a single lookup is needed for a given hostname since the
organisation of the trie means that all matches (from least to most specific)
for a given hostname will be found with a single walk.
BUG=none
R=palmer@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/0653ece4f182ab947d6809c311dfd4e8febaee1f
Patch Set 1 #Patch Set 2 : ... #Patch Set 3 : g cl try #
Total comments: 14
Patch Set 4 : ... #Patch Set 5 : ... #Patch Set 6 : ... #
Total comments: 1
Messages
Total messages: 19 (4 generated)
|