mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-04 02:49:18 +00:00 
			
		
		
		
	Preallocate capacity
This commit is contained in:
		
							parent
							
								
									fbbb1de1df
								
							
						
					
					
						commit
						68729446d0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -938,7 +938,7 @@ local function world_cleanup(world)
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	local new_archetypes = {}
 | 
						local new_archetypes = table.create(#archetypes)
 | 
				
			||||||
	local new_archetype_map = {}
 | 
						local new_archetype_map = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for index, archetype in archetypes do
 | 
						for index, archetype in archetypes do
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "ukendio/jecs"
 | 
					name = "ukendio/jecs"
 | 
				
			||||||
version = "0.3.0-rc.5"
 | 
					version = "0.3.0-rc.6"
 | 
				
			||||||
registry = "https://github.com/UpliftGames/wally-index"
 | 
					registry = "https://github.com/UpliftGames/wally-index"
 | 
				
			||||||
realm = "shared"
 | 
					realm = "shared"
 | 
				
			||||||
include = [
 | 
					include = [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue