answersakp.blogg.se

How to make a computer program using electron
How to make a computer program using electron









how to make a computer program using electron

And yes - that does not mean, that the second method is slow - both are really fast in practical use cases, but when we use a lot of slower methods in our application, replacing them with faster alternatives can really make a difference! But take a look at the performance benchmark:Īs you can see, the first method is more than 2 times faster, than the second one. They both do the same thing - find the DOM element. To make sure this feature is enabled, we will use a package called v8-compile-cache, created by Andres Suarez:Įnter fullscreen mode Exit fullscreen mode One of it's feature is the code caching, which can speed up instantiation time of you app. That's why I would like to show you 4 tips on how to make your Electron app faster!Ĭhrome V8 is basically a JavaScript engine, that powers both Node.js & Chromium browser. Now, even though we can't just delete the whole Chromium from our app and reduce it's size, we can still do something about the RAM usage & speed. UI might feel a bit slow, especially on the older computers.Electron apps usually use a lot of RAM.Size of application built with Electron is typically around ~120 MB.To render your application UI, it uses Chromium, which is always bundled in your final application. Unfortunately, Electron has some downsides. It was initially called Atom Shell and was developed by Github to power their text editor - Atom.Įverything sound great, right? You don't need to learn another language to create cross-platform apps and instead utilize your existing knowledge. If you don't know that already, Electron is an open-source framework for building cross-platform desktop applications using HTML, CSS & (duh) JavaScript. It works as expected, has a beautiful UI, eats a lot of RAM and is slow, right? So you just made a nice & shiny new app with Electron.











How to make a computer program using electron