-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from vaexio/superhash
Superhash: binby, groupby, unique, value_counts and xarray support
- Loading branch information
Showing
45 changed files
with
3,675 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// #include "flat_hash_map.hpp" | ||
// #include "unordered_map.hpp" | ||
#include "tsl/hopscotch_set.h" | ||
#include "tsl/hopscotch_map.h" | ||
|
||
namespace vaex { | ||
|
||
template<class Key, class Value, class Hash=std::hash<Key>, class Compare=std::equal_to<Key>> | ||
// using hashmap = ska::flat_hash_map<Key, Value, Hash, Compare>; | ||
using hashmap = tsl::hopscotch_map<Key, Value, Hash, Compare>; | ||
// template<class Key, class Hash, class Compare> | ||
// using hashset = tsl::hopscotch_set<Key, Hash, Compare>; | ||
|
||
// we cannot modify .second, instead use .value() | ||
// see https://github.com/Tessil/hopscotch-map | ||
template<class I, class V> | ||
inline void set_second(I& it, V &&value) { | ||
it.value() = value; | ||
} | ||
|
||
} |
Oops, something went wrong.