You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/third_party/pymmseg-cpp/mmseg/mmseg-cpp/memory.cpp

9 lines
189 B

#include "memory.h"
#define PRE_ALLOC_SIZE 2097152 /* 2MB */
namespace rmmseg {
char *_pool_base = static_cast<char *>(std::malloc(PRE_ALLOC_SIZE));
size_t _pool_size = PRE_ALLOC_SIZE;
}