mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
reduce maps loading by 40% from micro optimization
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user