perf(export): cache counts and speed sns/session stats

This commit is contained in:
tisonhuang
2026-03-01 17:51:28 +08:00
parent bf9b5ba593
commit 7604ff2ae4
7 changed files with 365 additions and 62 deletions

View File

@@ -1032,6 +1032,10 @@ function registerIpcHandlers() {
return snsService.getExportStats()
})
ipcMain.handle('sns:getExportStatsFast', async () => {
return snsService.getExportStatsFast()
})
ipcMain.handle('sns:debugResource', async (_, url: string) => {
return snsService.debugResource(url)
})