Home » Community » U++ community news and announcements » Changes in hashing
Re: Changes in hashing [message #54179 is a reply to message #54178] |
Fri, 05 June 2020 13:02 |
Oblivion
Messages: 1094 Registered: August 2007
|
Senior Contributor |
|
|
Quote: first of all, using GetHashValue as unique ID is probably not a good idea, but I guess you mean something slightly different there.
Yeah, The IDs are not "really" meant to be unique. Bad wording. They are used in cache management, and dword is sufficient in my case.
Quote:But exactly for this reason we have (for quite a long time) FoldHash function, which IMO seems ideal for you scenario. It takes hash_t and produces dword, while bringing entropy back to lowest bits
Well, I did not know that, because, you know, lack of documentation... But this is good news. I'll test with FoldHash and look into the code ASAP.
Quote:
(BTW, look at implementation, I think it is one of more clever ideas from me...
You have a lot of clever ideas. The main reason why I prefer U++.
Thank you!
Best regads,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
|
|
|
Goto Forum:
Current Time: Sun May 12 20:05:16 CEST 2024
Total time taken to generate the page: 0.02479 seconds
|