-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How much value normalization will objecthash do? #16
Comments
All other objecthash implementations make Unicode normalization a configurable toggle. The present I will go ahead and leave this issue open to discuss whether such a toggle should be added. That said, there are two places objecthash performs the sort of normalization you might see in a canonicalization scheme:
|
And how about float, any plan for that? |
@pedrocr personally I hate floating points, and the nascent objecthash-inspired scheme I have been working on does not support them at all. That said, |
Ok, between this and the performance penalty of all those text conversions I'll have to roll my own then. Supporting float is essential and |
Note the scheme I'm working on avoids the text conversion |
If it doesn't do floats it's a no-go for me. Good image processing is all about f32. I'd have to do a bunch of manual conversions to/from fixed-point or something of the sort and that just makes for extremely ugly code. |
I see from the code that unicode normalization is done. Is the idea also to do NaN normalization in floats? There are uses where this is not ideal and you don't want normalization at all. Will this be an option in the future? I'd actually argue the default case should be that otherwise it's easy to generate matching hashes for objects that will then behave differently when passed to certain functions.
The text was updated successfully, but these errors were encountered: