Skip to content

Commit 052b6c3

Browse files
author
xiexun
committed
Remove mallopt to save CPU usage
1 parent dc9a1c5 commit 052b6c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

orbbec_camera/src/ob_camera_node_driver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ OBCameraNodeDriver::~OBCameraNodeDriver() {
143143
}
144144

145145
void OBCameraNodeDriver::init() {
146-
// Set memory allocation parameters to reduce memory fragmentation
147-
mallopt(M_TRIM_THRESHOLD, 1024*1024*10);
148-
mallopt(M_TOP_PAD, 128*1024);
149-
150146
// Set signal handlers for crash reporting
151147
signal(SIGSEGV, signalHandler); // segment fault
152148
signal(SIGABRT, signalHandler); // abort

0 commit comments

Comments
 (0)