Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patrickhulce/electron-performance-examples
Collection of electron performance examples.
https://github.com/patrickhulce/electron-performance-examples
Last synced: 10 days ago
JSON representation
Collection of electron performance examples.
- Host: GitHub
- URL: https://github.com/patrickhulce/electron-performance-examples
- Owner: patrickhulce
- Created: 2020-05-10T17:02:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T17:26:16.000Z (about 2 years ago)
- Last Synced: 2024-10-19T00:47:54.946Z (25 days ago)
- Language: HTML
- Size: 162 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# electron-performance-examples
## Overview
Run `yarn && yarn start` to launch the project.
![image](https://user-images.githubusercontent.com/2301202/81505629-51111a80-92b6-11ea-8869-71f3e4de7732.png)
Play around with the buttons to observe how Electron behaves with main-thread activity.
## Background
Electron has a main process and renderer processes, just like Chromium. [Electron's docs](https://www.electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes) and [Cameron's article](https://cameronnokes.com/blog/deep-dive-into-electron's-main-and-renderer-processes/) on this topic are really helpful introductions if you're unfamiliar with the basics.
## Characteristics
- Work in renderers does not affect other renderers.
- Work in the main process _does_ impact renderers but only for handling user input and coordinating IPCs. Notice that while main thread stalls the JS-loop to render random numbers continues even though no buttons will respond to user input.