Commit Graph

223 Commits

Author SHA1 Message Date
greg 8a18882ca7 Revert "Fix (hopefully) part #2 of issue #117 for non-parallel hash maps"
This reverts commit 3f02d81926.
2021-11-18 22:02:51 -05:00
greg 3f02d81926 Fix (hopefully) part #2 of issue #117 for non-parallel hash maps 2021-11-18 21:47:59 -05:00
greg b0ac9ef70a tentative fix for issue #117 2021-11-18 20:41:45 -05:00
greg 07b740bd99 serialize.cc example doesn't seem to work with cereal #116 2021-11-09 21:32:08 -05:00
greg 52ab7028fd fix CI warnings and issues. 2021-11-07 12:09:17 -05:00
greg 3b5ecf0c2a add for_each extension api for safe keys iteration #113
Thanks @amitma1 for the changes
2021-11-02 16:50:45 -04:00
yanz 24a2418e4b add emplace_with_hash function to phmap::flat_hash_set 2021-09-23 18:34:37 +08:00
Binglin Chang fa18404b0e Add prefetch_hash for parrallel hash map/set 2021-09-07 14:25:00 +08:00
Gregory Popovitch 76139fed1a Merge pull request #107 from AndrewDeanMS/msvc-wchar-t-minus
Add support for msvc flag /Zc:wchar_t-
2021-09-02 20:39:59 -04:00
Andrew Dean 7976ede849 Add support for msvc:/Zc:wchar_t- 2021-09-02 12:19:53 -07:00
greg 8dbd3591de issue #106: make btree_container's size_type unsigned for consistency 2021-09-01 18:26:43 -04:00
greg 9840f782a0 Fix issue #99 2021-05-19 08:04:51 -04:00
Brian McKinnon 1557461428 Performance improvement to if_contains and modify_if. Works with pointers rather than constructing iterators. A test I conducted which heavily uses these functions a ~10% improvement in runtime. 2021-05-12 19:59:02 -05:00
Gregory Popovitch b4efc91e7f use find_as_pair in erase_if_impl as well. 2021-05-08 07:07:50 -04:00
Brian McKinnon 3a0e372bbf Add if_contains_unsafe function that does not lock the parallel hash map mutex
Add find_as_pair function, since make_iterator in find was very expensive.  With an equal number of read and write operations in a sample program, more time was being spent in the read then write.
2021-05-07 21:42:03 -05:00
greg 9def0df26f tentative fix for issue #94 2021-05-05 21:47:45 -04:00
greg 7684faf186 issue #89 2021-04-22 08:31:01 -04:00
byronhe 01d73bec61 fix std::shared_mutex 2021-04-02 01:03:27 +08:00
greg fa18b3207d small cleanup 2021-03-15 18:57:20 -04:00
greg 08c10a02d5 Add erase_if custom API - issue #84 2021-03-15 11:20:49 -04:00
greg 8335afbbb6 Add parallel_hashmap APIs: extended APIs emplace_with_hash and try_emplace_with_hash. - issue #82 2021-03-07 22:15:26 -05:00
greg 118e56fb7f fix couple warnings, use stable version ofg googletest 2021-02-01 21:38:52 -05:00
greg 4a7e130032 cleanup some warnings 2021-02-01 13:59:03 -05:00
greg 2af41f776f rename custom API clearSubmap. 2021-02-01 09:22:10 -05:00
greg 13b37dab61 Add clearSubmap API and make sets_ array protected - issue #81 2021-02-01 08:45:37 -05:00
greg 7bad77f61e Update comment - issue #79 2020-12-28 19:28:45 +00:00
greg d68cdf947c cleanup comments 2020-11-22 22:09:01 -05:00
greg 1c3fb21945 fix compilation issue 2020-10-23 23:25:55 -04:00
greg 6ab2d4f77b cleanup some compilation issues 2020-10-23 22:44:40 -04:00
greg fde389f838 add public hash() function - issue #71 2020-10-23 22:17:16 -04:00
greg 8bc5c5f642 add public hash() function, and contains() taking a precomputed hashval - issue #71 2020-10-23 21:57:54 -04:00
greg c32372b342 make test c++11 compatible 2020-10-18 10:53:29 -04:00
greg fd9d1d2278 Fix compilation error 2020-10-16 22:53:41 -04:00
Brian McKinnon 02127f7bec Add lazy_emplace_l which is similar to try_emplace_l
lazy_emplace returns an iterator that is not thread-safe
2020-10-16 20:05:51 -05:00
Force Charlie cb6702ad5f Fix compile phmap failed in windows-arm64 2020-10-05 11:04:00 +08:00
greg 72beffb140 issue #65 - fix linux compilation issue 2020-10-02 15:05:18 -04:00
greg b004de56a9 issue #65 - small cleanup in previous checkin - remove useless typename keyword 2020-10-02 14:46:19 -04:00
greg 7c346be97b issue #65 - Fix Intel compiler warning 2020-10-02 14:44:51 -04:00
greg 1120316af3 issue #68 - added support for prefetch in MSVC 2020-10-02 14:35:08 -04:00
greg c4121f9ef5 issue #67 2020-10-02 14:12:00 -04:00
greg b44f781829 Revert "issue #67"
This reverts commit 535ea23741.
2020-10-02 14:09:44 -04:00
greg 535ea23741 issue #67 2020-10-02 14:08:27 -04:00
greg c8a0e5a2b8 add support for bidirectional iterators on non-parallel hashmaps - issue #58 2020-08-16 21:49:26 -04:00
greg 5a74cb42ff update try_emplace_l so that the lambda is called only when the key was already present - issue #60 2020-08-16 18:44:12 -04:00
greg 0d229b1159 Add new API try_emplace_l (issue #60) 2020-08-16 18:27:20 -04:00
Colin Gaudreau edc886bcda Fixed accidental typo. 2020-08-09 21:51:07 -05:00
Colin Gaudreau 9baa437c3f Fixed merge with upstream to work on gcc 2020-08-09 21:48:07 -05:00
Colin Gaudreau c28f03be22 Merged with upstream repo. 2020-08-09 20:59:33 -05:00
Colin Gaudreau f6337521ab Added modify_if method
- Added method to safely modify a value in a map using
  the UniqueLock.
2020-08-07 13:08:45 -05:00
greg 17f9048990 change mutable if_contains to modify_if 2020-08-07 13:10:31 -04:00