This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new ca6f51fcd5 [Performance] disable mmap alloc for doris performance 
(#21034)
ca6f51fcd5 is described below

commit ca6f51fcd56bed39c3175d295d67823432b81dba
Author: HappenLee <[email protected]>
AuthorDate: Tue Jun 20 23:27:49 2023 +0800

    [Performance] disable mmap alloc for doris performance (#21034)
    
    disable mmap alloc for some benchmark
---
 be/src/vec/common/allocator_fwd.h             | 2 +-
 be/src/vec/common/hash_table/phmap_fwd_decl.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/common/allocator_fwd.h 
b/be/src/vec/common/allocator_fwd.h
index e39ec52640..988f7a5c7a 100644
--- a/be/src/vec/common/allocator_fwd.h
+++ b/be/src/vec/common/allocator_fwd.h
@@ -24,7 +24,7 @@
 #pragma once
 
 #include <cstddef>
-template <bool clear_memory_, bool mmap_populate = false, bool use_mmap = true>
+template <bool clear_memory_, bool mmap_populate = false, bool use_mmap = 
false>
 class Allocator;
 
 template <typename Base, size_t N = 64, size_t Alignment = 1>
diff --git a/be/src/vec/common/hash_table/phmap_fwd_decl.h 
b/be/src/vec/common/hash_table/phmap_fwd_decl.h
index 93b17db02d..e9ec663637 100644
--- a/be/src/vec/common/hash_table/phmap_fwd_decl.h
+++ b/be/src/vec/common/hash_table/phmap_fwd_decl.h
@@ -26,7 +26,7 @@ namespace doris::vectorized {
 /// `Allocator_` implements several interfaces of `std::allocator`
 /// which `phmap::flat_hash_map` will use.
 template <typename T>
-class Allocator_ : private Allocator<false, true, true> {
+class Allocator_ : private Allocator<false, false, false> {
 public:
     using value_type = T;
     using pointer = T*;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to