mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Kernel/IPC: Use boost::small_vector for HLE context objects
This commit is contained in:
		
							parent
							
								
									60d70c4f43
								
							
						
					
					
						commit
						d8f6000f54
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -7,6 +7,7 @@ | ||||||
| #include <array> | #include <array> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <vector> | #include <vector> | ||||||
|  | #include <boost/container/small_vector.hpp> | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "common/swap.h" | #include "common/swap.h" | ||||||
| #include "core/hle/ipc.h" | #include "core/hle/ipc.h" | ||||||
|  | @ -127,7 +128,8 @@ private: | ||||||
| 
 | 
 | ||||||
|     std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf; |     std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf; | ||||||
|     SharedPtr<ServerSession> session; |     SharedPtr<ServerSession> session; | ||||||
|     std::vector<SharedPtr<Object>> request_handles; |     // TODO(yuriks): Check common usage of this and optimize size accordingly
 | ||||||
|  |     boost::container::small_vector<SharedPtr<Object>, 8> request_handles; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| } // namespace Kernel
 | } // namespace Kernel
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue