Commits

Gora Khargosh  committed f6828ee

Updates commentary.

Signed-off-by: Gora Khargosh <gora.khargosh@gmail.com>

  • Participants
  • Parent commits 59c8b65

Comments (0)

Files changed (2)

File mom/codec/base58.py

 # If you're going to make people type stuff longer than this length
 # I don't know what to tell you. Beyond this length powers
 # are computed, so be careful if you care about computation speed.
-# I think this is a VERY generous range. Most of the stuff you decode
-# that is smaller than 512 bytes will be very fast.
+# I think this is a VERY generous range. Decoding bytes fewer than 512
+# will use this pre-computed lookup table, and hence, be faster.
 POW_58 = tuple(58**power for power in range(512))
 
 

File mom/codec/base62.py

 # If you're going to make people type stuff longer than this length
 # I don't know what to tell you. Beyond this length powers
 # are computed, so be careful if you care about computation speed.
-# I think this is a VERY generous range. Most of the stuff you decode
-# that is smaller than 512 bytes will be very fast.
+# I think this is a VERY generous range. Decoding bytes fewer than 512
+# will use this pre-computed lookup table, and hence, be faster.
 POW_62 = tuple(62**power for power in range(512))