| ▲ | dhruv3006 4 hours ago | |
How do you make a electron app light weight ? What are the best practices for windows ? | ||
| ▲ | kurouna 29 minutes ago | parent [-] | |
That is a very fair question. When I say "lightweight," I am focusing on perceived speed and responsiveness rather than memory footprint. Here is how I approached it in elecxzy: Core Implementation: I implemented the core editor logic, including a custom Piece Table and Virtual Rendering, from scratch. By keeping everything outside of Electron itself as minimal and simple as possible, the editor remains very snappy. No Extensions or Lisp: Since it doesn't have a Lisp environment or an extension system, the startup process is very straightforward. While it might not be as instant as the native Notepad, it is as fast as a simple, optimized Electron app can be. I made a quick video comparing its startup speed with Notepad. The post is in Japanese, but you can see how quickly it launches in the video: https://x.com/elecxzy/status/2022003439757336583 For me, the goal was to ensure that the input latency and the feeling of opening the app don't hinder the "flow" of taking quick notes. | ||