kirei / python-base45

Base45
BSD 2-Clause "Simplified" License
21 stars 8 forks source link

Improve decode speed by using a dictionary instead of string #6

Closed lucaslugao closed 3 years ago

lucaslugao commented 3 years ago

Replace the linear time complexity string.index lookup with the constant time complexity dict.get.