kou commented on code in PR #45210:
URL: https://github.com/apache/arrow/pull/45210#discussion_r1909712125
##########
cpp/CMakePresets.json:
##########
@@ -6,6 +6,30 @@
"patch": 0
},
"configurePresets": [
+ {
+ "name": "_allocator-none",
+ "hidden": true,
+ "cacheVariables": {
+ "ARROW_JEMALLOC": "OFF",
+ "ARROW_MIMALLOC": "OFF"
+ }
+ },
+ {
+ "name": "_allocator-jemalloc",
+ "hidden": true,
+ "cacheVariables": {
+ "ARROW_JEMALLOC": "ON",
+ "ARROW_MIMALLOC": "OFF"
Review Comment:
We can enable multiple allocators at the same time. :-)
The default allocator is chosen based on our recommendation:
https://github.com/apache/arrow/blob/5181c24f6d780591426e0af0d1b72c68f190484c/cpp/src/arrow/memory_pool.cc#L143
https://github.com/apache/arrow/blob/5181c24f6d780591426e0af0d1b72c68f190484c/cpp/src/arrow/memory_pool.cc#L86-L100
But users can select any allocator from enabled allocators by creating
`arrow::MemoryPool` instead of using `arrow::default_memory_pool()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]