[PR #702] [CLOSED] perf: ️ 内存优化 #597

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/702
Author: @awsl1414
Created: 1/1/2026
Status: Closed

Base: dev-fixHead: dev-fix


📝 Commits (8)

📊 Changes

22 files changed (+782 additions, -157 deletions)

View changed files

.gitattributes (+1 -0)
📝 Dockerfile (+12 -10)
📝 README.md (+76 -23)
📝 electron/main/ipc/ipc-lyric.ts (+3 -3)
📝 electron/main/services/CacheService.ts (+1 -1)
📝 package.json (+3 -2)
📝 pnpm-lock.yaml (+277 -6)
📝 scripts/build-native.mjs (+21 -1)
📝 src/api/lastfm.ts (+2 -1)
📝 src/components/Player/MainAMLyric.vue (+2 -2)
📝 src/components/Player/MainLyric.vue (+5 -4)
📝 src/components/Setting/GeneralSetting.vue (+0 -14)
📝 src/components/Setting/LocalSetting.vue (+14 -0)
📝 src/components/Setting/PlaySetting.vue (+4 -2)
📝 src/core/player/AudioManager.ts (+24 -4)
📝 src/stores/data.ts (+14 -5)
📝 src/stores/music.ts (+16 -14)
📝 src/stores/setting.ts (+1 -1)
📝 src/utils/initIpc.ts (+53 -43)
src/utils/ipcManager.ts (+222 -0)

...and 2 more files

📄 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/702 **Author:** [@awsl1414](https://github.com/awsl1414) **Created:** 1/1/2026 **Status:** ❌ Closed **Base:** `dev-fix` ← **Head:** `dev-fix` --- ### 📝 Commits (8) - [`5369ab6`](https://github.com/imsyy/SPlayer/commit/5369ab692ee360684e4c2cf336317f01470799a1) 🐞 fix: 修复构建 & Docker - [`00a0c8d`](https://github.com/imsyy/SPlayer/commit/00a0c8d0ae27679610205d13418721309177f8f8) Merge pull request #690 from imsyy/dev-fix - [`8a50b15`](https://github.com/imsyy/SPlayer/commit/8a50b154897a42622b58fde00d25b0d0694879ea) Merge pull request #692 from imsyy/dev-fix - [`c334de3`](https://github.com/imsyy/SPlayer/commit/c334de39ebfabaa0aced813aae81a334d71bf595) docs: 文档更新 - [`058139f`](https://github.com/imsyy/SPlayer/commit/058139f89f842714752a542576ecc20b97ec0929) docs: 文档更新 - [`acbd65e`](https://github.com/imsyy/SPlayer/commit/acbd65ed2243c2789bbf07838b4ec02bde43db8c) docs: 文档更新 - [`12e65b5`](https://github.com/imsyy/SPlayer/commit/12e65b5b748083afd09cf8abfb24ad12068825cc) Merge pull request #693 from RainyGrass/docs/docs-update - [`470e6a1`](https://github.com/imsyy/SPlayer/commit/470e6a1f85a79503402f4fe118b28fafc9675c40) perf: ⚡️ 内存优化 ### 📊 Changes **22 files changed** (+782 additions, -157 deletions) <details> <summary>View changed files</summary> ➕ `.gitattributes` (+1 -0) 📝 `Dockerfile` (+12 -10) 📝 `README.md` (+76 -23) 📝 `electron/main/ipc/ipc-lyric.ts` (+3 -3) 📝 `electron/main/services/CacheService.ts` (+1 -1) 📝 `package.json` (+3 -2) 📝 `pnpm-lock.yaml` (+277 -6) 📝 `scripts/build-native.mjs` (+21 -1) 📝 `src/api/lastfm.ts` (+2 -1) 📝 `src/components/Player/MainAMLyric.vue` (+2 -2) 📝 `src/components/Player/MainLyric.vue` (+5 -4) 📝 `src/components/Setting/GeneralSetting.vue` (+0 -14) 📝 `src/components/Setting/LocalSetting.vue` (+14 -0) 📝 `src/components/Setting/PlaySetting.vue` (+4 -2) 📝 `src/core/player/AudioManager.ts` (+24 -4) 📝 `src/stores/data.ts` (+14 -5) 📝 `src/stores/music.ts` (+16 -14) 📝 `src/stores/setting.ts` (+1 -1) 📝 `src/utils/initIpc.ts` (+53 -43) ➕ `src/utils/ipcManager.ts` (+222 -0) _...and 2 more files_ </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#597
No description provided.