[PR #703] [CLOSED] perf: ️ 内存优化 #593

Closed
opened 2026-02-27 07:12:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/703
Author: @awsl1414
Created: 1/1/2026
Status: Closed

Base: devHead: dev-fix


📝 Commits (1)

  • 470e6a1 perf: ️ 内存优化

📊 Changes

10 files changed (+342 additions, -77 deletions)

View changed files

📝 electron/main/ipc/ipc-lyric.ts (+3 -3)
📝 electron/main/services/CacheService.ts (+1 -1)
📝 src/api/lastfm.ts (+2 -1)
📝 src/components/Player/MainAMLyric.vue (+2 -2)
📝 src/components/Player/MainLyric.vue (+5 -4)
📝 src/core/player/AudioManager.ts (+24 -4)
📝 src/stores/data.ts (+14 -5)
📝 src/stores/music.ts (+16 -14)
📝 src/utils/initIpc.ts (+53 -43)
src/utils/ipcManager.ts (+222 -0)

📄 Description

  • 新增 IPC 管理器统一管理事件监听器
  • 使用 markRaw/toRaw 优化内存占用
  • 修复事件监听器清理逻辑

实际内存减少约 10m(windows)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/703 **Author:** [@awsl1414](https://github.com/awsl1414) **Created:** 1/1/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev-fix` --- ### 📝 Commits (1) - [`470e6a1`](https://github.com/imsyy/SPlayer/commit/470e6a1f85a79503402f4fe118b28fafc9675c40) perf: ⚡️ 内存优化 ### 📊 Changes **10 files changed** (+342 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `electron/main/ipc/ipc-lyric.ts` (+3 -3) 📝 `electron/main/services/CacheService.ts` (+1 -1) 📝 `src/api/lastfm.ts` (+2 -1) 📝 `src/components/Player/MainAMLyric.vue` (+2 -2) 📝 `src/components/Player/MainLyric.vue` (+5 -4) 📝 `src/core/player/AudioManager.ts` (+24 -4) 📝 `src/stores/data.ts` (+14 -5) 📝 `src/stores/music.ts` (+16 -14) 📝 `src/utils/initIpc.ts` (+53 -43) ➕ `src/utils/ipcManager.ts` (+222 -0) </details> ### 📄 Description - 新增 IPC 管理器统一管理事件监听器 - 使用 markRaw/toRaw 优化内存占用 - 修复事件监听器清理逻辑 实际内存减少约 10m(windows) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:12:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#593
No description provided.