mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #20] [MERGED] Improve data locking performance #582
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/20
Author: @aome510
Created: 10/26/2021
Status: ✅ Merged
Merged: 10/26/2021
Merged by: @aome510
Base:
master← Head:improve-data-performance📝 Commits (10+)
f2a374aaddparking_lotandcrossbeam_channel63f2d04useparking_lot::{Mutex,RwLock}instead of thestd::syncalternativescb5de77removestate::UIStateGuardas a function parameter ineventmodulec30028areduce the uses ofUIStateGuardas function parameter inuimodulea8cb471drop the mutex lock to avoid deadlock1dc941efix the wrong render position of the shortcut help popup0cc3785remove the use ofUIStateGuardas a function parameter42560c2cleanup p12a36408fix deadlock in popup event main handling function46eab74fix error not handling search page event correctly📊 Changes
17 files changed (+561 additions, -610 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
doc/config.md(+1 -1)📝
spotify_player/Cargo.toml(+1 -0)📝
spotify_player/src/client/handlers.rs(+5 -7)📝
spotify_player/src/client/mod.rs(+40 -56)📝
spotify_player/src/event/mod.rs(+43 -36)📝
spotify_player/src/event/popup.rs(+97 -107)📝
spotify_player/src/event/window.rs(+105 -85)📝
spotify_player/src/state/mod.rs(+33 -17)📝
spotify_player/src/state/model.rs(+8 -9)📝
spotify_player/src/state/ui.rs(+32 -61)📝
spotify_player/src/ui/context.rs(+27 -44)📝
spotify_player/src/ui/help.rs(+44 -57)📝
spotify_player/src/ui/mod.rs(+65 -72)📝
spotify_player/src/ui/popup.rs(+39 -32)📝
spotify_player/src/ui/search.rs(+15 -19)📝
spotify_player/src/utils.rs(+5 -7)📄 Description
Brief description of changes
parking_lotlibrary to replacestd::sync::{RwLock, Mutex}🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.