nextron icon indicating copy to clipboard operation
nextron copied to clipboard

How to make Nextron app launch x,000ms faster

Open bm777 opened this issue 1 year ago • 14 comments

@saltyshiomix

How can I make electrons faster in production? The build app takes around 5-12 seconds to load.

I discovered how atom.io has a launch time faster. They used v8-snapshot with electron-linker following this guide. How can I have v8-snapshot running for the module I'm using in my Nextron app?

I'm asking if you have already guidance for Nextron.

(I'm fearing to waste time if you have already done that, it could take me more time because it will be my first time.)

I'm amazed by the work v8-snapshots in an Electron app.

Screenshot 2023-10-04 at 14 29 58

bm777 avatar Oct 04 '23 12:10 bm777

Hi @bm777 👋🏻, I would like to contribute to this improvement, it sounds interesting, have you already made progress on this?

FranciscoJBrito avatar Oct 04 '23 14:10 FranciscoJBrito

@FranciscoJBrito, yes definitely.

I will create an empty Nextron app with Tailwindcss + JavaScript.

And we can work on it. It will be in another branch of this repo. Will provide the name in a few minutes.

bm777 avatar Oct 05 '23 09:10 bm777

@saltyshiomix Could we work on another (new) in your repo?

bm777 avatar Oct 05 '23 09:10 bm777

@FranciscoJBrito This is the template js + tailwindcss nextron we can use to configure v8-snapshots.

This is the reference.

bm777 avatar Oct 05 '23 10:10 bm777

@bm777 Awesome, I'll be working on this fork then 🙌🏻

FranciscoJBrito avatar Oct 05 '23 20:10 FranciscoJBrito

You can create a branch francis if you want :)

bm777 avatar Oct 05 '23 20:10 bm777

That's so interasting!

@bm777

Could we work on another (new) in your repo?

Sure!!!

saltyshiomix avatar Oct 06 '23 01:10 saltyshiomix

Cool. I'm not allowed to push code to another branch. Maybe you can create a branch for us 😃 @saltyshiomix

bm777 avatar Oct 06 '23 01:10 bm777

@bm777 @FranciscoJBrito

I just added you as a collaborator. Please check out: https://github.com/saltyshiomix/nextron/invitations

Feel free to make a branch or create PR :)

saltyshiomix avatar Oct 06 '23 01:10 saltyshiomix

Hello! We are big fans of nextron. By chance, what is the status of this? Or does anyone have guides on how to use this?

bfan1256 avatar Dec 25 '23 06:12 bfan1256

Hi @bfan1256 I will work on it in the 1 week of 2024. And give you some updates.

bm777 avatar Dec 25 '23 06:12 bm777