refactor: switch containers to mimalloc-aware aliases and use sel_t for row indices#546
Open
liulx20 wants to merge 24 commits into
Open
refactor: switch containers to mimalloc-aware aliases and use sel_t for row indices#546liulx20 wants to merge 24 commits into
liulx20 wants to merge 24 commits into
Conversation
Removed comment about MI_OVERRIDE in CMake configuration.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new container abstraction to standardize and optimize memory allocation for column data structures, with support for mimalloc-based allocation when enabled. It replaces standard STL containers with custom types throughout the codebase, updates function signatures to use the new types, and ensures consistent usage in edge and context column classes. Additionally, it adds a compile-time flag for mimalloc integration.
Container abstraction and allocator support:
container_types.hdefiningneug::vector,neug::flat_hash_map,neug::flat_hash_set, and allocator selection based on theNEUG_WITH_MIMALLOCmacro. Also introducedsel_tandsel_vec_tas selection index types.CMakeLists.txtto add theNEUG_WITH_MIMALLOCcompile definition and changed mimalloc override settings for more controlled allocator usage.These changes improve memory management flexibility, enable allocator customization, and standardize container usage across the codebase.
Fixes