Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uphsts_list takes 26Mb - can it be lower? #25929
Comments
|
Looks like gecko generates a DAFSA and the result is https://searchfox.org/mozilla-central/source/__GENERATED__/security/manager/ssl/nsSTSPreloadList.h. |
|
Lines 16 to 21 in b939b38 There are some easy wins here. The It looks like the current code has a single |
|
rust-phf already exists, so it would be relatively easy to use. An automaton like Gecko’s would take more effort but likely produce faster lookups and maybe more compact storage. |
|
I saw that there is |
hsts_list(public and private) takes 26Mb in memory. That's a pretty large blob in memory allocated just at startup.Would there be any better way to store it?