Skip to content

Conversation

@SerhiiL-DevBrother
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@dylon dylon left a comment

Choose a reason for hiding this comment

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

I did a bit of experimentation and could not find a dataset size or structure depth at which PathMap-based set operations outperformed HashMap-based ones. HashMap utilizes the hardware caches better than PathMap for generalized set operations. PathMap excels at prefix querying and incremental updates when structural sharing benefits can be maximized, but it is not the best for implementing generalized set operations (according to my benchmarks).

I pushed my experimental branch, based off this one, to dylon/set-operation-functions:

…enchmarks parallel PathMap multiset operations vs. sequential HashMap operations and demonstrates, empirically, that the HashMap-based operations perform better than the PathMap-based operations regardless the dataset size or depth of structures
@SerhiiL-DevBrother SerhiiL-DevBrother marked this pull request as ready for review December 31, 2025 10:32
@SerhiiL-DevBrother SerhiiL-DevBrother force-pushed the feature/set-operation-functions branch 2 times, most recently from 24e4b59 to aa0ed51 Compare December 31, 2025 11:10
@SerhiiL-DevBrother SerhiiL-DevBrother force-pushed the feature/set-operation-functions branch from aa0ed51 to b960999 Compare December 31, 2025 11:21
@SerhiiL-DevBrother SerhiiL-DevBrother force-pushed the feature/set-operation-functions branch from b960999 to dd46d7c Compare December 31, 2025 11:26
Copy link
Collaborator

@dylon dylon left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks, Serhii.

@dylon dylon merged commit 74ec5fb into main Jan 5, 2026
3 checks passed
@dylon dylon deleted the feature/set-operation-functions branch January 5, 2026 15:49
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.

3 participants