You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We only really need to build up a set of valid characters in the input alphabet once, in the generateDecoder factory function. Then, we can get rid of toCharset (and make isValid string -> set[char] -> bool instead of string -> string -> bool).
This makes the decoder function more efficient, since we aren't repeatedly constructing the character set of valid characters on each call.
The text was updated successfully, but these errors were encountered:
We only really need to build up a set of valid characters in the input alphabet once, in the
generateDecoder
factory function. Then, we can get rid oftoCharset
(and makeisValid
string -> set[char] -> bool instead of string -> string -> bool).This makes the decoder function more efficient, since we aren't repeatedly constructing the character set of valid characters on each call.
The text was updated successfully, but these errors were encountered: