Page 2 of 2
Re: XXH32 Module (xxHash)
Posted: Wed May 23, 2018 6:37 am
by wilbert
forumuser wrote:That checksum contains the correct one (b6fe8a29) but it is affixed with "FFFFFFFF".
The function returns a long and the Hex() takes a long here as well. Should I just
strip it or is there a more elegant way?
It's very strange that it does so when you specify #PB_Long.
I added a custom hex procedure to the module named XXH32_Hex.
This should always return a 8 character string.
I'm considering to add a progress callback to the XXH32_FromFile procedure.
Don't know if it would be worth it or not.
Re: XXH32 Module (xxHash)
Posted: Wed May 23, 2018 7:04 am
by forumuser
I added a custom hex procedure to the module named XXH32_Hex
Yeah, now it's fine and I only get the expected hex value
I'm considering to add a progress callback to the XXH32_FromFile procedure
Would be a nice addition to allow a gui to display the current progress (for the current file)
Not only for _very_ large files but also for medium sized when they need to be read from a slow
device (hdds)...
I really love this module, now file content comparisons got so much faster...
Re: XXH32 Module (xxHash)
Posted: Wed May 23, 2018 10:00 am
by wilbert
forumuser wrote:Would be a nice addition to allow a gui to display the current progress (for the current file)
I added a progress callback and also a new example in the first post which makes use of it.
Re: XXH32 Module (xxHash)
Posted: Wed May 23, 2018 11:46 am
by forumuser
I added a progress callback and also a new example in the first post which makes use of it
Works like a charm!
Re: XXH32 Module (xxHash)
Posted: Mon Apr 04, 2022 2:09 am
by Everything
Re: XXH32 Module (xxHash)
Posted: Mon Apr 04, 2022 10:00 am
by wilbert
It seems to be very fast.
Personally I have no interest in doing an ASM implementation now a C backend is being added to PureBasic.
It just makes no sense to me to spend a lot of time in doing so and getting requests for a non ASM solution by users who are using the C backend.
Maybe you can find a C implementation that can be used with the C backend of PureBasic.
Re: XXH32 Module (xxHash)
Posted: Mon Apr 04, 2022 1:00 pm
by Everything
Unfortunately, I haven't seen a C implementation yet.
At the moment I can offer
libxxhash.dll (can be found also in msys64\mingw64 or inkscape distro) for testing the algorithm on Windows.
Note that it was built with slightly different compiler flags than the xxhsum.exe utility from the official repository, for example
but in general this is not important