mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	RTC: Cache the large buffer allocation
This commit is contained in:
		
							parent
							
								
									65ba88de3f
								
							
						
					
					
						commit
						d5b210abc8
					
				
					 9 changed files with 135 additions and 133 deletions
				
			
		|  | @ -312,6 +312,8 @@ public: | |||
|     SrsSharedPtrMessage(); | ||||
|     virtual ~SrsSharedPtrMessage(); | ||||
| public: | ||||
|     // For object cache to reset and reuse it.
 | ||||
|     bool reset() { return true; } | ||||
|     // Create shared ptr message,
 | ||||
|     // copy header, manage the payload of msg,
 | ||||
|     // set the payload to NULL to prevent double free.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue