mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-06 13:07:47 +08:00
Remove mallopt to save CPU usage
This commit is contained in:
@@ -143,10 +143,6 @@ OBCameraNodeDriver::~OBCameraNodeDriver() {
|
||||
}
|
||||
|
||||
void OBCameraNodeDriver::init() {
|
||||
// Set memory allocation parameters to reduce memory fragmentation
|
||||
mallopt(M_TRIM_THRESHOLD, 1024*1024*10);
|
||||
mallopt(M_TOP_PAD, 128*1024);
|
||||
|
||||
// Set signal handlers for crash reporting
|
||||
signal(SIGSEGV, signalHandler); // segment fault
|
||||
signal(SIGABRT, signalHandler); // abort
|
||||
|
||||
Reference in New Issue
Block a user