mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	 bf0315ff8f
			
		
	
	
		bf0315ff8f
		
	
	
	
	
		
			
			Previously we would've copied the bytecode instead of moving the chunks around, use the fancy new DisjointChunks<T> abstraction to make that happen automagically. This decreases vector copies and uses of memmove() by nearly 10x :^)
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			292 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "Forward.h"
 | |
| 
 | |
| namespace regex {
 | |
| 
 | |
| class Optimizer {
 | |
| public:
 | |
|     static void append_alternation(ByteCode& target, ByteCode&& left, ByteCode&& right);
 | |
| };
 | |
| 
 | |
| }
 |