![]() StringBuilder could be beneficial, but if you're at a low amount of characters (like your link suggests) then it's probably not going to make a difference performance-wise (always best to test yourself instead of listening to a stranger on the internet though :P).Īvoid premature optimizations, they're really hurting this code. Var isNumber = nextChar >= '0' & nextChar = 'A' & nextChar = 'a' & nextChar = '0' & c = 'A' & c = 'a' & c. goto causes massive headaches when it's been months since you've touched the code and you come back to it not remembering a thing. If you want to do the same action for 3 different if-statements make them one if-statement or make them a function. It throws away most of the bytes it reads, keeping each byte with a probability of \$62 \over 256\$.Ī smarter approach would be to fetch a bit more than \$\$ random bytes, base64-encode it, and discard just the resulting + and / characters. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |