Skip to content

remove quiver dep#32

Merged
johnpryan merged 4 commits intofleaflet:masterfrom
avioli:master
Jun 7, 2018
Merged

remove quiver dep#32
johnpryan merged 4 commits intofleaflet:masterfrom
avioli:master

Conversation

@avioli
Copy link
Copy Markdown
Contributor

@avioli avioli commented May 1, 2018

Removed quiver dependency, since the only use is for the hash3 method.

Copy/pasted the JenkinsSmiHash from flutter's front_end lib and added attribution where needed.

BTW: I'm wondering if this hash method is tested/proven useful for doubles, given it is hashing coordinates (which are usually doubles, not integers).

dart:math uses it internally, but doesn't expose the hashX, combine nor finish methods, so that is of no use. It's attribution is also missing, thus using the front_end codebase.

@johnpryan johnpryan self-requested a review May 7, 2018 22:57
/// object.
class _JenkinsSmiHash {
/// Accumulates the hash code [value] into the running hash [hash].
static int combine(int hash, int value) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes me think that this will only work with integers, not doubles. Have you tested with doubles in strong mode?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the JenkinsSmiHash altogether, since dart:ui exposes hashValues()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants