mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	LibWeb: Emit character/comment tokens lazily to accumulate more data
Instead of emitting data-bearing tokens immediately, do it lazily at the next state change. This allows us to accumulate full bursts of text in between tags instead of having one token per character. :^)
This commit is contained in:
		
							parent
							
								
									ede44853d1
								
							
						
					
					
						commit
						7be36366be
					
				
					 2 changed files with 31 additions and 3 deletions
				
			
		|  | @ -148,6 +148,7 @@ private: | |||
| 
 | ||||
|     void will_switch_to(State); | ||||
|     void will_reconsume_in(State); | ||||
|     void flush_current_character_or_comment_if_needed(); | ||||
| 
 | ||||
|     State m_state { State::Data }; | ||||
|     State m_return_state { State::Data }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling