Performance improvements

This commit is contained in:
Pieter Vander Vennet 2021-02-05 16:32:37 +01:00
parent 49f78d5604
commit 8f8ef690a4
11 changed files with 125 additions and 101 deletions

View file

@ -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);