Hi,
I'd like to propose an optimization for the Decode method. I'll be decoding a single ID most of the time, so it might make sense to add add the following methods:
//decode a single int ID from a hash
int DecodeSingle(string hash);
//decode a single long ID from a hash
long DecodeSingleLong(string hash);
This approach would not require allocating an array for returning single values.
Hi,
I'd like to propose an optimization for the
Decodemethod. I'll be decoding a single ID most of the time, so it might make sense to add add the following methods:This approach would not require allocating an array for returning single values.