Not a big change, just more efficient. It was hard coded, and though it works either way, it's better than it being hard coded.
Remove base58 hard-coding #6323
pull penguin1333 wants to merge 1 commits into bitcoin:master from penguin1333:patch-1 changing 1 files +1 −1-
penguin1333 commented at 11:00 PM on June 22, 2015: none
-
Remove base58 hard-coding f2915379a7
-
luke-jr commented at 11:49 PM on June 22, 2015: member
More efficient how? If anything, this would be less efficient.
-
penguin1333 commented at 1:32 AM on June 23, 2015: none
This isn't less efficient. We're never going to change it, so why keep it hard coded? It's bad practice.
But either way, it works the same. So I'd just say to merge it if you want more "pretty" code.
-
penguin1333 commented at 1:35 AM on June 23, 2015: none
Here's an example:
You have 1 apple.
You want to count it 3 times.
You could say "1 apple + 1 apple + 1 apple"
or you could store it in say, a variable called "a" and do "a*3"
-
paveljanik commented at 5:38 AM on June 23, 2015: contributor
NACK If you want to have prettier code, why not rewrite the whole last phase of the function? Why skip zeroes and prefill with 1s at all?
-
penguin1333 commented at 6:01 AM on June 23, 2015: none
I guess that's true, but it wouldn't hurt to merge would it? It's been requested and it makes things neater imo.
But of course, that's arguable. I don't feel like arguing because it's a waste of time and I already probably agree with you. I just thought "why not?". Haha
-
laanwj commented at 6:45 AM on June 23, 2015: member
I have no opinion on whether this is better or not. Something can be said for both sides.
But I feel this discussion is a waste of time, please don't make changes if they don't solve a problem, we're barged with pull requests as it is.
- laanwj closed this on Jun 23, 2015
- MarcoFalke locked this on Sep 8, 2021