~miikka/clj-base62#1: 
Slow performance

The current implementation is fast enough for short message, but becomes very slow for anything over 10 kB. It seems that the asymptotic performance is worse than O(n).

Status
RESOLVED WONT_FIX
Submitter
~miikka
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
No labels applied.

~miikka 4 years ago*

Now I've realized that the O(n) performance is (likely) not possible. Base62 encoding is essentially radix conversion from base 256 to base 62 and based on quick search, the best known bound is O(M(n) log n) where M is the bound for multiplication of two n-bit integers. Still, it would be good to do a small benchmark to check the performance against the other implementations.

(Base64 is a special case since 256 is a multiple of 64.)

~miikka REPORTED WONT_FIX 4 years ago

Register here or Log in to comment, or comment via email.