forked from MapComplete/MapComplete
		
	Performance improvements
This commit is contained in:
		
							parent
							
								
									49f78d5604
								
							
						
					
					
						commit
						8f8ef690a4
					
				
					 11 changed files with 125 additions and 101 deletions
				
			
		|  | @ -13,7 +13,7 @@ export class UIEventSource<T> { | |||
|             return []; | ||||
|         } | ||||
|         // @ts-ignore
 | ||||
|         window.mcperf = () => { | ||||
|         window.mapcomplete_performance = () => { | ||||
|             console.log(UIEventSource.allSources.length, "uieventsources created"); | ||||
|             const copy = [...UIEventSource.allSources]; | ||||
|             copy.sort((a,b) => b._callbacks.length - a._callbacks.length); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue