Skip to content
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

Improve performance of maps #1

Merged
merged 2 commits into from
Jul 25, 2016
Merged

Improve performance of maps #1

merged 2 commits into from
Jul 25, 2016

Conversation

2opremio
Copy link

  • Include mutable variant of Set() (UnsafeMutableSet()). Useful to construct maps efficiently.
  • Improve performance when recomputing node counts in Set()
  • Hashing: unsafe cast strings to []bytes in order to avoid parsing unicode

* Include mutable variant of Set() (UnsafeMutableSet()). Useful to construct maps efficiently.

* Improve performance when recomputing node counts in Set()

* Hashing: unsafe cast strings to []bytes in order to avoid parsing unicode
@2opremio
Copy link
Author

Taken from weaveworks/scope#1720

@tomwilkie
Copy link

I'd be surprised if the hashing fixes we're accepted upstream.

LGTM

@2opremio 2opremio merged commit 70d17b2 into master Jul 25, 2016
@2opremio 2opremio deleted the improve-performance branch July 25, 2016 18:35
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