saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

How to make Nextron app launch x,000ms faster #410

Open bm777 opened 9 months ago

bm777 commented 9 months ago

@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
FranciscoJBrito commented 9 months ago

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

bm777 commented 9 months ago

@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 commented 9 months ago

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

bm777 commented 9 months ago

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

This is the reference.

FranciscoJBrito commented 9 months ago

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

bm777 commented 9 months ago

You can create a branch francis if you want :)

saltyshiomix commented 9 months ago

That's so interasting!

@bm777

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

Sure!!!

bm777 commented 9 months ago

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

saltyshiomix commented 9 months ago

@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 :)

bfan1256 commented 6 months ago

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?

bm777 commented 6 months ago

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