Skip to content

Comment on Why did hostnames get reversed?

Comments

I don't have any concrete evidence, but my guess is that having the repeating value (the TLD) at the front meant that storing domain names in a hashtable was inefficient. Lookups would be faster if the more-unique part was at the front of the string, since the string comparisons would run faster.

Wouldn't this make sense only if you weren't using a hashtable, i.e. a list or something else that had to be traversed?

such as a trie/patricia

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.