Cheaper and faster prehash generation mechanism#45
Cheaper and faster prehash generation mechanism#45szaydel wants to merge 1 commit intoryanmjacobs:masterfrom
Conversation
|
Nice! Yeah, that method looks a lot faster. It seems that all tests are passing, so I don't see a reason not to accept this. I'll take a deeper look at the code itself tomorrow. Nice work! |
|
Sounds good. I am sure one can find that this method could be improved. Let me know if you find any issues you feel are non-starters, and I can see about addressing them as time allows. And, thanks again! |
|
@ryanmjacobs, I was wondering if we should just close this, or if you have interest still, I am happy to fix it, to make sure it could be merged in without any conflicts. |
|
Hi @szaydel, I'm okay with merging this as long as I'm 100% certain that it doesn't break anything. In terms of efficiency, this bumps it down from That being said... My primary concern is that this doesn't run the file through int main(void) {
#ifdef __unix__
return 1;
#endif
return 0;
}
|
|
Fair point about the preprocessor. I guess I am not 100% certain that this does not break anything, at least in my testing it did not. Why don't we close this out for now, and I will play more with this to make sure I am very confident first, and then we can open this conversation up again. |
I am not sure if you have much interest in this, but I found that this method of creating id is no less reliable and faster as well as cheaper.
I must admit I have not done exhaustive testing, but if you find this interesting I am happy to do a good bit more validation. In my limited testing it has been reliable.
Ran a few comparisons just so there's something I can show. The only difference is this changeset.
These are my two test scripts...
Thanks!