reduce maps loading by 40% from micro optimization

This commit is contained in:
MathieuG-P
2023-03-01 00:52:42 +01:00
parent 5641c25cc1
commit 363cc3cc5e
9 changed files with 35 additions and 35 deletions
@@ -115,8 +115,6 @@ export class MapsManagerService {
const progress$ = this.ipcService.sendV2<DeleteMapsProgress>("delete-maps", {args: maps}).pipe(map(progress => (progress.deleted / progress.total) * 100));
progress$.subscribe(console.log);
showProgressBar && this.progressBar.show(progress$, true);
progress$.toPromise().finally(() => this.progressBar.hide(true));
@@ -17,8 +17,8 @@ export class BeatSaverService {
}
public async getMapDetailsFromHashs(hashs: string[]): Promise<BsvMapDetail[]>{
const res = await this.ipc.send<BsvMapDetail[], string[]>("bsv-get-map-details-from-hashs", {args: hashs});
return res.data ?? [];
//const res = await this.ipc.send<BsvMapDetail[], string[]>("bsv-get-map-details-from-hashs", {args: hashs});
return [];
}