Comments (13)
Thanks, looks good
from smhasher.
Merged, thanks. I just had no room for your README.md docs. Maybe put them into the header.
from smhasher.
Sorry, but I just updated t1ha.
This is a fairly important change.
In general, I was switched to little bit faster 'mux' version (with 64x64 mul) and to C from C++.
But also fixes a possibility of crossing page boundary at the end of key, in case it was unaligned.
This is not a flaw in case using t1ha in the 1Hippeus project, but seriously bug for general hash function.
Please merge again.
from smhasher.
Can you add the t1ha_mux variant also?
This is now missing from your smhasher-rurban.t1ha branch
from smhasher.
It was decided to leave only the "mux" variant, at the same time renaming it into "t1ha".
Maybe it's not the best solution, but in general should be better.
I think, I should clarify:
- The 'mux' version (which now called as main "t1ha") is faster for small keys, but same speed for large keys.
- The old version (originally called 1Hippeus Hash) was dropped, because it should be fixed/refined against flaw that I noted.
- This should not be mislead about "t1ha" name, because it just published as "Positive Hash" and it have not been used before.
https://github.com/leo-yuriev/t1ha/blob/smhasher-rurban.t1ha/main.cpp#L184
from smhasher.
But this would not work on 32bit then. No plan for a 32bit version?
from smhasher.
It should already work. More over, much faster than mum-hash.
I implemented the required multiplication for the absence of __int128.
https://github.com/leo-yuriev/t1ha/blob/smhasher-rurban.t1ha/t1ha.c#L149
from smhasher.
Great, updating and testing it now
from smhasher.
This looks like a bug:
add_with_carry(uint64_t *sum, uint64_t addend) {
*sum += addend;
return sum < addend;
}
=>
return *sum < addend;
and it is also invalid C++ with -fpermissive
from smhasher.
Oops. Sure this is bug. Just lost de-referense while conversion from C++ to C.
It is question for QA. How it passes the tests?
from smhasher.
I was QA. I didn't pass :)
in smhasher it just added randomly a 0 or 1 to it, which apparently qualifies as good enough.
on 32bit some constants are also too long and are capped. e.g. 2166136261 would need a 2166136261L there. but this is in a different function.
from smhasher.
;)
+1
I am on the road approximately two hours.
from smhasher.
Thank!
from smhasher.
Related Issues (20)
- komihash 4.5 HOT 8
- PIC register clobbered by ‘%ebx’ in ‘asm’ or illegal instruction HOT 2
- PIC register clobbered by ‘%ebx’ in ‘asm’ or illegal instruction. See #245 HOT 1
- PRVHASH 4.3.1 HOT 5
- Questions about MurmurHash and FNV HOT 4
- Recent Ryzen 5 3350G 3.6GHz speed tests HOT 5
- failure to build on arm HOT 1
- port to std::experimental::simd (P0214) alternatives
- [Question] Does SMhasher measures input or output speed. HOT 1
- [Question] Are the 262144-byte keys read entirely one by one? HOT 2
- [Question] Is the hash function one time called for each 262144 bytes key? HOT 2
- komihash 5.0 HOT 11
- Add PolymurHash HOT 3
- Verif value typo
- Possible new test: compressibility HOT 12
- komihash 5.7 HOT 1
- prvhash HOT 7
- komihash 5.10 HOT 4
- code cleanup / better naming
- Build error: no viable overloaded '+=' (macOS 14.4.1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smhasher.