mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:52:44 +00:00 
			
		
		
		
	LibWeb: Put most LibWeb GC objects in type-specific heap blocks
With this change, we now have ~1200 CellAllocators across both LibJS and LibWeb in a normal WebContent instance. This gives us a minimum heap size of 4.7 MiB in the scenario where we only have one cell allocated per type. Of course, in practice there will be many more of each type, so the effective overhead is quite a bit smaller than that in practice. I left a few types unconverted to this mechanism because I got tired of doing this. :^)
This commit is contained in:
		
							parent
							
								
									536596632b
								
							
						
					
					
						commit
						bfd354492e
					
				
					 599 changed files with 933 additions and 3 deletions
				
			
		|  | @ -12,6 +12,7 @@ namespace Web::HTML { | |||
| 
 | ||||
| class HTMLEmbedElement final : public HTMLElement { | ||||
|     WEB_PLATFORM_OBJECT(HTMLEmbedElement, HTMLElement); | ||||
|     JS_DECLARE_ALLOCATOR(HTMLEmbedElement); | ||||
| 
 | ||||
| public: | ||||
|     virtual ~HTMLEmbedElement() override; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling