DistriNet / tranco-python-package

Python package to access the Tranco list
MIT License
21 stars 9 forks source link

Store the list as a dictionary for faster rank lookups #9

Closed christopher-david-smith closed 12 months ago

christopher-david-smith commented 2 years ago

This PR fixes issue #7 by storing the list of domains as a dictionary instead of a list, which makes looking up items via the rank function considerably quicker.