正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -139,12 +139,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -139,12 +139,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 139 | * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 | 139 | * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 |
| 140 | */ | 140 | */ |
| 141 | #undef SRS_PERF_QUEUE_FAST_VECTOR | 141 | #undef SRS_PERF_QUEUE_FAST_VECTOR |
| 142 | +#if defined(SRS_PERF_QUEUE_FAST_CACHE) && defined(SRS_PERF_QUEUE_FAST_VECTOR) | ||
| 143 | + #error "fast cache conflict with fast vector" | ||
| 144 | +#endif | ||
| 142 | /** | 145 | /** |
| 143 | * whether use cond wait to send messages. | 146 | * whether use cond wait to send messages. |
| 144 | * @remark this improve performance for large connectios. | 147 | * @remark this improve performance for large connectios. |
| 145 | * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 | 148 | * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 |
| 146 | */ | 149 | */ |
| 147 | #undef SRS_PERF_QUEUE_COND_WAIT | 150 | #undef SRS_PERF_QUEUE_COND_WAIT |
| 151 | +#ifdef SRS_PERF_QUEUE_COND_WAIT | ||
| 152 | + #define SRS_PERF_MW_MIN_MSGS 8 | ||
| 153 | +#endif | ||
| 148 | 154 | ||
| 149 | /** | 155 | /** |
| 150 | * how many chunk stream to cache, [0, N]. | 156 | * how many chunk stream to cache, [0, N]. |
-
请 注册 或 登录 后发表评论