From 9199e40fc121b19ce24bb0875068794aade2d177 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 21 May 2020 16:33:40 +0800 Subject: [PATCH] RTC: Remove dead macros --- trunk/src/core/srs_core_performance.hpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/trunk/src/core/srs_core_performance.hpp b/trunk/src/core/srs_core_performance.hpp index f57fb4023..be1554851 100644 --- a/trunk/src/core/srs_core_performance.hpp +++ b/trunk/src/core/srs_core_performance.hpp @@ -193,25 +193,5 @@ #define SRS_PERF_GLIBC_MEMORY_CHECK #undef SRS_PERF_GLIBC_MEMORY_CHECK -// For RTC, how many iovs we alloc for each mmsghdr for GSO. -// Assume that there are 3300 clients, say, 10000 msgs in queue to send, the memory is: -// 2 # We have two queue, cache and hotspot. -// * 4 # We have reuseport, each have msg cache queue. -// * (64 + 16*SRS_PERF_RTC_GSO_MAX + SRS_PERF_RTC_GSO_IOVS * 1500) # Each message size. -// * 10000 # Total messages. -// = 197MB # For SRS_PERF_RTC_GSO_IOVS = 1 -// = 311MB # For SRS_PERF_RTC_GSO_IOVS = 2 -// = 540MB # For SRS_PERF_RTC_GSO_IOVS = 4 -// = 998MB # For SRS_PERF_RTC_GSO_IOVS = 8 -#if defined(__linux__) - #define SRS_PERF_RTC_GSO_IOVS 4 -#else - #define SRS_PERF_RTC_GSO_IOVS 1 -#endif - -// For RTC, the max count of RTP packets we process in one loop. -// TODO: FIXME: Remove it. -#define SRS_PERF_RTC_RTP_PACKETS 1024 - #endif