kaiku-music-player | Kaiku Music Player for Winamp nostalgic | Music Player library
kandi X-RAY | kaiku-music-player Summary
kandi X-RAY | kaiku-music-player Summary
"Kaiku" means "echo" in Finnish and it is a music player inspired by Winamp. Built on top of Electron (Chromium + Node.js), React and Mobx.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kaiku-music-player
kaiku-music-player Key Features
kaiku-music-player Examples and Code Snippets
Community Discussions
Trending Discussions on kaiku-music-player
QUESTION
I have a music player built with Electron.
I am having some performance / process blocking that I didn't expect. I am trying to do some background processes for heavy IO operations. (determining songs duration and album covers)
I am doing this by calling methods through the electron.remote module. I have noticed that the app didn't do these things asynchronously somehow.
I have been running the performance tool to check and saw the click handler taking a huge time.
Digging deeper I found that ipcRenderer.sendSync
is called.
There is a warning about sendSync
blocking nature in Electron Docs. But, my own code does not call it. So I suspect the remote module or something else in my code causing sendSync
to be called.
The entire app code is on Github but here is an example of electron.remote usage.
The gist is something like this:
...ANSWER
Answered 2018-Mar-30 at 18:31https://github.com/electron/electron/blob/master/docs/api/remote.md#remote-objects
Each object (including functions) returned by the remote module represents an object in the main process (we call it a remote object or remote function). When you invoke methods of a remote object, call a remote function, or create a new object with the remote constructor (function), you are actually sending synchronous inter-process messages.
every remote module is sync in nature.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kaiku-music-player
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page